Permalink
Browse files

Fixing parenthesis in conditional. (fix #64)

  • Loading branch information...
1 parent 3de1b99 commit 51ccb90c312c9c27dee316e5efef48f66651cb5f @arboleya committed Mar 26, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/toaster.js
  2. +1 −1 src/toaster/toast.coffee
View
@@ -101,7 +101,7 @@ var toaster = exports.toaster = {};
}
if (srcpath instanceof Object) {
params = srcpath;
- } else if (path.resolve(srcpath !== srcpath)) {
+ } else if ((path.resolve(srcpath)) !== srcpath) {
folder = path.join(this.basepath, srcpath);
}
if (params.release === null) {
View
@@ -54,7 +54,7 @@ class Toast
toast:( srcpath, params = {} )=>
if srcpath instanceof Object
params = srcpath
- else if path.resolve srcpath != srcpath
+ else if (path.resolve srcpath) != srcpath
folder = path.join @basepath, srcpath
if params.release is null

0 comments on commit 51ccb90

Please sign in to comment.