mirror of
https://github.com/pushbits/server.git
synced 2025-07-29 06:17:55 +02:00
Add misspell, gocritic, and revive
This commit is contained in:
parent
5e640800fe
commit
2c20e42a21
30 changed files with 79 additions and 43 deletions
|
@ -1,3 +1,4 @@
|
|||
// Package authentication provides definitions and functionality related to user authentication.
|
||||
package authentication
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package credentials provides definitions and functionality related to credential management.
|
||||
package credentials
|
||||
|
||||
import (
|
||||
|
|
|
@ -11,7 +11,7 @@ const (
|
|||
minRandomChars = 14
|
||||
)
|
||||
|
||||
func isGoodToken(assert *assert.Assertions, require *require.Assertions, token string, compat bool) {
|
||||
func isGoodToken(assert *assert.Assertions, _ *require.Assertions, token string, compat bool) {
|
||||
tokenLength := len(token)
|
||||
|
||||
if compat {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue