Fixed a few linter hints
This commit is contained in:
@ -21,7 +21,8 @@ func (settings *Settings) Authorize(ctx aero.Context, action string) error {
|
||||
|
||||
// Edit updates the settings object.
|
||||
func (settings *Settings) Edit(ctx aero.Context, key string, value reflect.Value, newValue reflect.Value) (bool, error) {
|
||||
// nolint:gocritic (because this should stay as a switch statement)
|
||||
// This should stay as a switch statement.
|
||||
// nolint:gocritic
|
||||
switch key {
|
||||
case "Theme":
|
||||
if settings.User().IsPro() {
|
||||
|
Reference in New Issue
Block a user