From bba9e19c5be9679dcefc42033b17ff5c16a80be2 Mon Sep 17 00:00:00 2001 From: Jakob Sandberg Date: Thu, 9 Jan 2020 17:56:13 -0800 Subject: [PATCH] Remove redundant checks on entry ID --- lib/api/entries/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/api/entries/index.js b/lib/api/entries/index.js index faf922ff0e8..38b20f8f1c3 100644 --- a/lib/api/entries/index.js +++ b/lib/api/entries/index.js @@ -14,8 +14,7 @@ const expand = braces.expand; const ID_PATTERN = /^[a-f\d]{24}$/; function isId (value) { - //TODO: why did we need tht length check? - return value && ID_PATTERN.test(value) && value.length === 24; + return ID_PATTERN.test(value); } /**