chore(Makefile): use linter version from dogfood Dockerfile (#11147)

* chore(Makefile): use golangci-lint version from dogfood Dockerfile

* chore(dogfood/Dockerfile): update golangci-lint to latest version

* chore(coderd): address linter complaints
This commit is contained in:
Cian Johnston
2023-12-12 10:02:32 +00:00
committed by GitHub
parent d07fa9c62f
commit 197cd935cf
9 changed files with 10 additions and 12 deletions
+1 -2
View File
@@ -361,9 +361,8 @@ func either[T Auditable, R any](old, new T, fn func(T) R, auditAction database.A
// If the request action is a login or logout, we always want to audit it even if
// there is no diff. See the comment in audit.InitRequest for more detail.
return fn(old)
} else {
panic("both old and new are nil")
}
panic("both old and new are nil")
}
func parseIP(ipStr string) pqtype.Inet {