Fix bug around handling forward declarations of obj-c protocols in precommit script.
This commit is contained in:
parent
0724300b0c
commit
726fa6577f
@ -269,7 +269,7 @@ def find_forward_class_statement_section(text):
|
||||
|
||||
def find_forward_protocol_statement_section(text):
|
||||
def is_forward_protocol_statement(line):
|
||||
return line.strip().startswith('@protocol ')
|
||||
return line.strip().startswith('@protocol ') and line.strip().endswith(';')
|
||||
|
||||
return find_matching_section(text, is_forward_protocol_statement)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user