Skip to content
Prev Previous commit
Next Next commit
Use "s" variable for readability
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
  • Loading branch information
hugovk and AA-Turner authored Sep 25, 2023
commit 433153d6fd65581e1cb538c45c4e04dad874cc72
3 changes: 2 additions & 1 deletion Tools/patchcheck/patchcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@

def n_files_str(count):
"""Return 'N file(s)' with the proper plurality on 'file'."""
return f"{count} file{'s' if count != 1 else ''}"
s = "s" if count != 1 else ""
return f"{count} file{s}"


def status(message, modal=False, info=None):
Expand Down