Skip to content

Commit

Permalink
Fixed isPromise
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Nov 15, 2016
1 parent 607a87d commit ce3c35f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/hprose-html5.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@
}

function isPromise(obj) {
return 'function' == typeof obj.then;
return 'function' === typeof obj.then;
}

function toPromise(obj) {
Expand Down
2 changes: 1 addition & 1 deletion src/Future.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
}

function isPromise(obj) {
return 'function' == typeof obj.then;
return 'function' === typeof obj.then;
}

function toPromise(obj) {
Expand Down

0 comments on commit ce3c35f

Please sign in to comment.