Skip to content

Commit 80eecee

Browse files
committed
Settle Credo warning
1 parent 4c9f7d4 commit 80eecee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/sqids.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ defmodule Sqids do
5252

5353
## Guards
5454

55+
# It is an expensive check, however it's the only way to check that a list is
56+
# proper from within a guard.
57+
#
58+
# credo:disable-for-next-line Credo.Check.Warning.ExpensiveEmptyEnumCheck
5559
defguardp is_proper_list(v) when length(v) >= 0
5660

5761
## API Functions

0 commit comments

Comments
 (0)