Skip to content

Commit

Permalink
fallback in case __dirname is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
martintajur committed Apr 20, 2016
1 parent f8f5bb6 commit 9d9a7f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/restler.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var fetchUrl = require('fetch').fetchUrl,
os = require('os'),
mime = require('mime'),
fs = require('fs'),
instanceHash = require('crypto').createHash('sha1').update(__dirname).digest('hex'),
instanceHash = require('crypto').createHash('sha1').update(__dirname || '').digest('hex'),
async = require('async');

module.exports = {
Expand Down

0 comments on commit 9d9a7f9

Please sign in to comment.