Remove redundant try/catch around directory copy operation

This commit is contained in:
Shane Kilkelly 2018-12-06 09:45:07 +00:00
parent 67d365e661
commit d22d5829bb

View file

@ -87,14 +87,9 @@ public class FSGitRepoStore implements RepoStore {
sourcePath, sourcePath,
destinationPath destinationPath
); );
try { File source = new File(sourcePath);
File source = new File(sourcePath); File destination = new File(destinationPath);
File destination = new File(destinationPath); FileUtils.copyDirectory(source, destination);
FileUtils.copyDirectory(source, destination);
} catch (Exception e) {
e.printStackTrace();
throw new IOException("copy failed" + e.getLocalizedMessage());
}
GitProjectRepo ret = GitProjectRepo.fromName(project); GitProjectRepo ret = GitProjectRepo.fromName(project);
ret.useExistingRepository(this); ret.useExistingRepository(this);
return new WalkOverrideGitRepo( return new WalkOverrideGitRepo(