mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 10:17:16 +08:00
Do not allow DartGit's exception to escape
DartGit is still quite experimental.
This commit is contained in:
@ -173,7 +173,8 @@ class GitNoteRepository {
|
|||||||
Future<int> numChanges() async {
|
Future<int> numChanges() async {
|
||||||
try {
|
try {
|
||||||
var repo = await git.GitRepository.load(gitDirPath);
|
var repo = await git.GitRepository.load(gitDirPath);
|
||||||
return repo.numChangesToPush();
|
var n = await repo.numChangesToPush();
|
||||||
|
return n;
|
||||||
} catch (_) {}
|
} catch (_) {}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user