Skip to content

Commit

Permalink
Fix path.existsSync calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Build Server committed Feb 24, 2015
1 parent 60d7cd7 commit 77cfbd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/inliner
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ fs.realpath(__filename, function(error, script) {

var url = program.args[0];

if (path.existsSync(url)) {
if (fs.existsSync(url)) {
// then it's a file
} else if (url.indexOf('http') !== 0) {
url = 'http://' + url;
Expand Down
2 changes: 1 addition & 1 deletion inliner.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ Inliner.prototype.get = function (url, options, callback) {
var inliner = this;

// TODO remove the sync
if (path.existsSync(url)) {
if (fs.existsSync(url)) {
// then we're dealing with a file
fs.readFile(url, 'utf8', function (err, body) {
inliner.requestCache[url] = body;
Expand Down

0 comments on commit 77cfbd6

Please sign in to comment.