mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 18:03:14 +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 {
|
||||
try {
|
||||
var repo = await git.GitRepository.load(gitDirPath);
|
||||
return repo.numChangesToPush();
|
||||
var n = await repo.numChangesToPush();
|
||||
return n;
|
||||
} catch (_) {}
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user