clean up formatting

- reclaim indentation level after removing surrounding `if`
- normalize object literal indentation levels