Skip to content

Commit a18b683

Browse files
Add review suggestion
Co-Authored-By: DanielChabrowski <dantezstudio@gmail.com>
1 parent 888787f commit a18b683

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pre_commit/commands/try_repo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def _repo_ref(tmpdir, repo, ref):
3838
env = dict(os.environ, GIT_INDEX_FILE=idx, GIT_OBJECT_DIRECTORY=objs)
3939

4040
staged_files = git.get_staged_files(cwd=repo)
41-
if (len(staged_files) > 0):
41+
if staged_files:
4242
cmd_output('git', 'add', *staged_files, cwd=repo, env=env)
4343

4444
cmd_output('git', 'add', '-u', cwd=repo, env=env)

0 commit comments

Comments
 (0)