mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-15 05:20:20 -06:00
Various cleanup.
This commit is contained in:
@@ -29,7 +29,9 @@ def is_in_merge_conflict():
|
||||
def parse_merge_msg_for_conflicts(merge_msg):
|
||||
# Conflicted files start with tabs
|
||||
return [
|
||||
line.strip() for line in merge_msg.splitlines() if line.startswith('\t')
|
||||
line.strip()
|
||||
for line in merge_msg.splitlines()
|
||||
if line.startswith('\t')
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user