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

Commit

Permalink
Resolve jslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aleitner committed Oct 17, 2016
1 parent b8d92d4 commit 5290544
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/lib/tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,18 @@ Tab.prototype.createID = function() {
).digest('hex');
};

/**
* Updates storage.path and storage.dataDir
* #updateStoragePath
* @param {String} newPath - New path for Shard Storage
*/
Tab.prototype.updateStoragePath = function(newPath) {
this.storage.path = newPath;
this.storage.dataDir = path.join(
this.storage.path,
'storjshare-' +this.shortId
);
}
};

/**
* Returns an abject suitable for commiting to disk
Expand Down

0 comments on commit 5290544

Please sign in to comment.