diff --git a/pre_commit_hooks/destroyed_symlinks.py b/pre_commit_hooks/destroyed_symlinks.py index 1404c5bd..b13ecd4e 100755 --- a/pre_commit_hooks/destroyed_symlinks.py +++ b/pre_commit_hooks/destroyed_symlinks.py @@ -34,9 +34,9 @@ def find_destroyed_symlinks(files: Sequence[str]) -> Sequence[str]: ) = splitted path = ' '.join(path_splitted) if ( - mode_HEAD == PERMS_LINK - and mode_index != PERMS_LINK - and mode_index != PERMS_NONEXIST + mode_HEAD == PERMS_LINK and + mode_index != PERMS_LINK and + mode_index != PERMS_NONEXIST ): if hash_HEAD == hash_index: # if old and new hashes are equal, it's not needed to check