Skip to content

Commit 819a2a6

Browse files
author
Your Name
committed
cli-19: reformatted
1 parent 84af065 commit 819a2a6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

cecli/repo.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,11 @@ async def commit(self, fnames=None, context=None, message=None, coder_edits=Fals
352352
for fname in fnames:
353353
try:
354354
# Check if file is git-ignored before trying to add
355-
if coder and hasattr(coder, "add_gitignore_files") and coder.add_gitignore_files:
355+
if (
356+
coder
357+
and hasattr(coder, "add_gitignore_files")
358+
and coder.add_gitignore_files
359+
):
356360
rel_fname = self.get_rel_fname(fname)
357361
if self.git_ignored_file(rel_fname):
358362
# Skip git-ignored files when add_gitignore_files is enabled

0 commit comments

Comments
 (0)