1
0
mirror of https://github.com/GitJournal/GitJournal.git synced 2025-07-14 07:00:50 +08:00

GitTransferProgress: parsing checks

This commit is contained in:
Vishesh Handa
2021-07-27 10:58:22 +02:00
parent 5f1e4cb8ea
commit 4811259940

@ -25,6 +25,10 @@ class GitTransferProgress {
var parts = str.split(' ');
print('GitTransferProgress: #$str#');
if (parts.length < 7) {
return null;
}
var tp = GitTransferProgress();
tp.totalObjects = int.parse(parts[0]);
tp.indexedObjects = int.parse(parts[1]);