square / spacecommander

Commit fully-formatted Objective-C as a team without even trying.
Other
1.13k stars 177 forks source link

Fix unassigned variable error #59

Closed emablekos closed 8 years ago

emablekos commented 8 years ago
UnboundLocalError: local variable 'in_multiline_comment' referenced before assignment
Traceback (most recent call last):
  File "/.../spacecommander/custom/DoubleNewlineInserter.py", line 41, in <module>
    DoubleNewlineInserter().run()
  File "/.../spacecommander/custom/AbstractCustomFormatter.py", line 15, in run
    formatted_lines = self.format_lines(f.readlines())
  File "/.../spacecommander/custom/DoubleNewlineInserter.py", line 21, in format_lines
    needs_double_newline_added = not (comment_section or in_multiline_comment)
alanf commented 8 years ago

Thanks @emablekos !