mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-30 19:00:48 +00:00
Remove redundant try/catch around directory copy operation
This commit is contained in:
parent
67d365e661
commit
d22d5829bb
1 changed files with 3 additions and 8 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue