mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
refactor: remove unnecessary directory existence check
This commit is contained in:
parent
c516119397
commit
f2e78daa42
2 changed files with 1 additions and 4 deletions
|
@ -41,4 +41,5 @@ Object? getAttribute({
|
|||
calloc.free(out);
|
||||
return result;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
|
@ -3,10 +3,6 @@ import 'package:path/path.dart' as p;
|
|||
|
||||
Directory setupRepo(Directory repoDir) {
|
||||
final tmpDir = Directory.systemTemp.createTempSync('testrepo');
|
||||
if (tmpDir.existsSync()) {
|
||||
tmpDir.deleteSync(recursive: true);
|
||||
}
|
||||
tmpDir.createSync();
|
||||
copyRepo(from: repoDir, to: tmpDir);
|
||||
return tmpDir;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue