`redirect_to ...` can be extracted after `end`

```ruby
if response['code'] == 200
  flash
else
  flash
end
redirect
```