Fixed a few linter hints
This commit is contained in:
.golangci.ymlmain_test.go
arn
jobs
kitsu-import-anime
kitsu-import-mappings
mal-parse
mal-sync
pages
animelist
editor
listimport
recommended
upload
patches/import-mal-companies
utils/editform
@ -189,7 +189,8 @@ func (post *Post) Edit(ctx aero.Context, key string, value reflect.Value, newVal
|
||||
consumed := false
|
||||
user := GetUserFromContext(ctx)
|
||||
|
||||
// nolint:gocritic (because this should stay a switch statement)
|
||||
// This should stay a switch statement.
|
||||
// nolint:gocritic
|
||||
switch key {
|
||||
case "ParentID":
|
||||
var newParent PostParent
|
||||
|
Reference in New Issue
Block a user