Why not the ternary `?` operator? Or if you really can't bring yourself to use it,

```ruby
  return field_name == SOME_DEFAULT_CONST if query_parameter.blank?
  query_parameter == field_name
```

Disclaimer: I may be a bit OCD about `else` :persevere: