Skip to content

Commit

Permalink
Merge pull request #965 from eumiro/drop-int
Browse files Browse the repository at this point in the history
Remove redundant int() conversion
  • Loading branch information
asottile committed Sep 21, 2023
2 parents 064d489 + 2e4efef commit f96db96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pre_commit_hooks/check_added_large_files.py
Expand Up @@ -46,7 +46,7 @@ def find_large_added_files(
filenames_filtered &= added_files()

for filename in filenames_filtered:
kb = int(math.ceil(os.stat(filename).st_size / 1024))
kb = math.ceil(os.stat(filename).st_size / 1024)
if kb > maxkb:
print(f'{filename} ({kb} KB) exceeds {maxkb} KB.')
retv = 1
Expand Down

0 comments on commit f96db96

Please sign in to comment.