Remove unnecessary parameter passing to ImportProject.lockForImport
Change-Id: I0109cb4d0a025d30b9e322d115ed43d8b952d357
diff --git a/src/main/java/com/googlesource/gerrit/plugins/importer/ImportProject.java b/src/main/java/com/googlesource/gerrit/plugins/importer/ImportProject.java
index ef886ab..95303da 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/importer/ImportProject.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/importer/ImportProject.java
@@ -136,7 +136,7 @@
input = new Input();
}
- LockFile lockFile = lockForImport(project);
+ LockFile lockFile = lockForImport();
try {
return apply(lockFile, input, null);
} finally {
@@ -147,7 +147,7 @@
public Response<String> resume(String user, String pass, File importStatus)
throws RestApiException, OrmException, IOException, ValidationException,
GitAPIException, NoSuchChangeException, NoSuchAccountException {
- LockFile lockFile = lockForImport(project);
+ LockFile lockFile = lockForImport();
try {
ImportProjectInfo info = ImportJson.parse(importStatus);
@@ -238,8 +238,7 @@
updateAndEnd(pm);
}
- private LockFile lockForImport(Project.NameKey project)
- throws ResourceConflictException {
+ private LockFile lockForImport() throws ResourceConflictException {
File importStatus = new File(lockRoot, project.get());
LockFile lockFile = new LockFile(importStatus, FS.DETECTED);
try {