You can refactor this `if/else` block to (removing the statement, then):

```ruby
format.json { respond_with_bip(resource) }
format.html { render action: 'edit' } if resource.errors.any?
```