Skip to content

Commit

Permalink
[utils] small optimization of PR #17
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolab committed Apr 1, 2015
1 parent 2cdddfb commit b21ab79
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@

var fs = require('fs-plus');
var path = require('path');
var localHistoryPath = atom.config.get('local-history.historyStoragePath') ? atom.config.get('local-history.historyStoragePath') :path.join(__dirname, '..', '..', '..', 'local-history');
var localHistoryPath = atom.config.get('local-history.historyStoragePath');

if(!localHistoryPath) {
localHistoryPath = path.join(__dirname, '..', '..', '..', 'local-history');
}

module.exports.getFileDate = function getFileDate(filePath) {
var basePath = path.basename(filePath);
Expand Down

0 comments on commit b21ab79

Please sign in to comment.