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,
destinationPath
);
try {
File source = new File(sourcePath);
File destination = new File(destinationPath);
FileUtils.copyDirectory(source, destination);
} catch (Exception e) {
e.printStackTrace();
throw new IOException("copy failed" + e.getLocalizedMessage());
}
File source = new File(sourcePath);
File destination = new File(destinationPath);
FileUtils.copyDirectory(source, destination);
GitProjectRepo ret = GitProjectRepo.fromName(project);
ret.useExistingRepository(this);
return new WalkOverrideGitRepo(