Skip to content

Commit

Permalink
Early returns.
Browse files Browse the repository at this point in the history
  • Loading branch information
arb committed Nov 18, 2014
1 parent 7262d83 commit 4d019bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ internals.Mimos.prototype.path = function (path) {
var mime = this._byExtension[extension] || {};

if (mime.predicate) {
mime = mime.predicate(Hoek.clone(mime));
return mime.predicate(Hoek.clone(mime));
}

return mime;
Expand All @@ -75,7 +75,7 @@ internals.Mimos.prototype.type = function (type) {
}

if (mime.predicate) {
mime = mime.predicate(Hoek.clone(mime));
return mime.predicate(Hoek.clone(mime));
}

return mime;
Expand Down

0 comments on commit 4d019bb

Please sign in to comment.