style: simplify if statement
style: simplify if statement

Closes #614

rust-lang/regex,rust-lang-nursery/regex,rust-lang-nursery/regex,rust-lang/regex,rust-lang/regex,rust-lang-nursery/regex,rust-lang/regex,rust-lang/regex,rust-lang-nursery/regex,rust-lang-nursery/regex