Skip to content

Commit

Permalink
Fix direction of if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMorrowDrums committed Apr 27, 2016
1 parent ef6845f commit 03c241b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function toURL(path, query) {
parsed.query = extend(parsed.query, query);
parsed.search = null;

if (['http:', 'https:', 'file:'].indexOf(parsed.protocol) < 0) {
if (['http:', 'https:', 'file:'].indexOf(parsed.protocol) > 0) {
return url.format(parsed);
} else {
return fileURL(url.format(parsed));
Expand Down

0 comments on commit 03c241b

Please sign in to comment.