mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 04:41:32 +02:00
Remove redundant try/catch around directory copy operation
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user