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

Commit

Permalink
fix: repo stat for string values
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Santos committed Nov 7, 2019
1 parent 4acd43e commit fdf70d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/repo/stat.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ const Big = require('bignumber.js')
const transform = function (res, callback) {
callback(null, {
numObjects: new Big(res.NumObjects),
repoSize: new Big(res.RepoSize),
repoSize: isNaN(res.RepoSize) ? res.RepoSize : new Big(res.RepoSize),
repoPath: res.RepoPath,
version: res.Version,
storageMax: new Big(res.StorageMax)
storageMax: isNaN(res.StorageMax) ? res.StorageMax : new Big(res.StorageMax)
})
}

Expand Down

0 comments on commit fdf70d9

Please sign in to comment.