From be1e03c49fda459f8939fe99ff855368406f5776 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sun, 14 Oct 2018 00:09:53 -0400 Subject: [PATCH] parens on ORs --- src/commands/list.command.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/list.command.ts b/src/commands/list.command.ts index 27ed819944..f44b659b31 100644 --- a/src/commands/list.command.ts +++ b/src/commands/list.command.ts @@ -72,7 +72,7 @@ export class ListCommand { return true; } const collectionId = cmd.collectionid === 'null' ? null : cmd.collectionid; - if (collectionId == null && c.collectionIds == null || c.collectionIds.length === 0) { + if (collectionId == null && (c.collectionIds == null || c.collectionIds.length === 0)) { return true; } if (collectionId != null && c.collectionIds != null && c.collectionIds.indexOf(collectionId) > -1) {