Skip to content

Commit 8769db0

Browse files
committed
Linting
1 parent 012e2cb commit 8769db0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/database/dbgen/take.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func takeFirstIP(values ...net.IPNet) net.IPNet {
1414
// []any is not a comparable type.
1515
func takeFirstSlice[T any](values ...[]T) []T {
1616
return takeFirstF(values, func(v []T) bool {
17-
return v != nil && len(v) != 0
17+
return len(v) != 0
1818
})
1919
}
2020

0 commit comments

Comments
 (0)