chore: fix linter

This commit is contained in:
Steven
2024-02-21 23:45:12 +08:00
parent 51d58d3982
commit 6b14d87521

View File

@@ -25,6 +25,7 @@ func (s *Store) MigrateWorkspaceSetting(ctx context.Context) error {
for _, workspaceSetting := range workspaceSettings { for _, workspaceSetting := range workspaceSettings {
matched := true matched := true
var baseValue any var baseValue any
// nolint
json.Unmarshal([]byte(workspaceSetting.Value), &baseValue) json.Unmarshal([]byte(workspaceSetting.Value), &baseValue)
if workspaceSetting.Name == "allow-signup" { if workspaceSetting.Name == "allow-signup" {
workspaceGeneralSetting.DisallowSignup = baseValue.(bool) workspaceGeneralSetting.DisallowSignup = baseValue.(bool)