mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-25 00:00:26 +08:00
GitTransferProgress: parsing checks
This commit is contained in:
@ -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]);
|
||||
|
Reference in New Issue
Block a user