Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit fdf70d9

Browse files
author
Pedro Santos
committed
fix: repo stat for string values
1 parent 4acd43e commit fdf70d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/repo/stat.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ const Big = require('bignumber.js')
66
const transform = function (res, callback) {
77
callback(null, {
88
numObjects: new Big(res.NumObjects),
9-
repoSize: new Big(res.RepoSize),
9+
repoSize: isNaN(res.RepoSize) ? res.RepoSize : new Big(res.RepoSize),
1010
repoPath: res.RepoPath,
1111
version: res.Version,
12-
storageMax: new Big(res.StorageMax)
12+
storageMax: isNaN(res.StorageMax) ? res.StorageMax : new Big(res.StorageMax)
1313
})
1414
}
1515

0 commit comments

Comments
 (0)