chore: fix linter errors

This commit is contained in:
Johnny
2025-04-05 22:36:02 +08:00
parent 9c7b063d72
commit 516487b58a
7 changed files with 17 additions and 9 deletions
+3 -1
View File
@@ -35,7 +35,9 @@ func (s *Store) ListWorkspaceSettings(ctx context.Context, find *FindWorkspaceSe
func (s *Store) GetWorkspaceSetting(ctx context.Context, find *FindWorkspaceSetting) (*storepb.WorkspaceSetting, error) {
if find.Key != storepb.WorkspaceSettingKey_WORKSPACE_SETTING_KEY_UNSPECIFIED {
if cache, ok := s.workspaceSettingCache.Load(find.Key); ok {
return cache.(*storepb.WorkspaceSetting), nil
if workspaceSetting, ok := cache.(*storepb.WorkspaceSetting); ok {
return workspaceSetting, nil
}
}
}