Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Fix gui complaints and jshint complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
aleitner committed Jul 17, 2017
1 parent b5aff9f commit 7499057
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions bin/storjshare-status.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ function prepareJson(shares) {
}

utils.connectToDaemon(port, function(rpc, sock) {
/*jshint maxcomplexity:7 */
rpc.status(function(err, shares) {
if (storjshare_status.json) {
// Print out json formatted share statuses
Expand Down
5 changes: 4 additions & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ exports.validate = function(config) {
exports.validateAllocation = function(conf, callback) {
const self = this;

if (!conf.storageAllocation.match(/[0-9]+([Tt]|[Mm]|[Gg]|[Kk])?[Bb]/g)) {
if (conf.storageAllocation &&
!conf.storageAllocation.toString().match(
/[0-9]+([Tt]|[Mm]|[Gg]|[Kk])?[Bb]/g
)) {
return callback(
new Error('Invalid storage size specified: '+ conf.storageAllocation)
);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "storjshare-daemon",
"version": "3.5.0",
"version": "3.5.1",
"description": "daemon + process manager for sharing space on the storj network",
"main": "index.js",
"bin": {
Expand Down

0 comments on commit 7499057

Please sign in to comment.