From dde29893cc702abb56381731fc92f97d75b2f9ca Mon Sep 17 00:00:00 2001 From: Carl Jackson Date: Sun, 2 Nov 2014 13:22:57 -0800 Subject: [PATCH] Simplify a logical XOR --- web/bytecode_runner.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/bytecode_runner.go b/web/bytecode_runner.go index 706490a..5fcf443 100644 --- a/web/bytecode_runner.go +++ b/web/bytecode_runner.go @@ -71,9 +71,7 @@ func (rm routeMachine) route(c *C, w http.ResponseWriter, r *http.Request) (meth return 0, &rm.routes[si] } i++ - } else if (match && sm&smJumpOnMatch != 0) || - (!match && sm&smJumpOnMatch == 0) { - + } else if match != (sm&smJumpOnMatch == 0) { if sm&smFail != 0 { return methods, nil }