Skip to content

Commit

Permalink
fix bug where legacy handler did not resolve with true when probe was…
Browse files Browse the repository at this point in the history
… missing
  • Loading branch information
dlueth committed May 29, 2020
1 parent 7a1e6b1 commit c67fd37
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 16 deletions.
6 changes: 5 additions & 1 deletion addon/handler/legacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
if(probe && (result = probe())) {
provide(function() { return result; });
} else {
dfd.reject(new Failure('error probing', self.path));
if(probe) {
dfd.reject(new Failure('error probing', self.path));
} else {
provide(function() { return true; });
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion dist/cache/dispose.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cache/states.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/demand.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/handler/css.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/handler/html.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/handler/json.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/handler/legacy.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/handler/legacy.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/handler/text.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugin/cookie.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c67fd37

Please sign in to comment.