Skip to content

Commit 9dcfe43

Browse files
NRL-2099 Fix warning and make condition comparison better
1 parent 9cb3832 commit 9dcfe43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/manage_permissions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ def list_apps(supplier_type: SupplierType) -> None:
205205
return
206206

207207
def there_are_x_apps(app_count: int):
208-
is_are = "is" if app_count is 1 else "are"
209-
s = "" if app_count is 1 else "s"
208+
is_are = "is" if app_count == 1 else "are"
209+
s = "" if app_count == 1 else "s"
210210
return f"There {is_are} {app_count} app{s}"
211211

212212
print(f"{there_are_x_apps(len(apps))} in the {nrl_env} env")

0 commit comments

Comments
 (0)