Browse Source

Simplify a logical XOR

Carl Jackson 11 years ago
parent
commit
dde29893cc
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      web/bytecode_runner.go

+ 1
- 3
web/bytecode_runner.go View File

@ -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
}


Loading…
Cancel
Save