Skip to content

Commit

Permalink
remove unnecessary snippet-mode check
Browse files Browse the repository at this point in the history
  • Loading branch information
shakyShane committed May 22, 2015
1 parent d3fff5c commit 1262a4c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/browser-sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -582,15 +582,11 @@ BrowserSync.prototype.removeRewriteRule = function (id) {
var bs = this;
var mode = bs.options.get("mode");

if (mode === "snippet") {
return;
}

if (mode === "server") {
bs.snippetMw.opts.rules = bs.snippetMw.opts.rules.filter(fn);
}

if (bs.options.get("mode") === "proxy") {
if (mode === "proxy") {
bs.proxy.config.rules = bs.proxy.config.rules.filter(fn);
}

Expand Down

0 comments on commit 1262a4c

Please sign in to comment.