chore: code clean

This commit is contained in:
Steven
2023-07-17 21:14:40 +08:00
parent b2ce071ef0
commit 21ff8ba797
3 changed files with 26 additions and 32 deletions

View File

@ -17,13 +17,7 @@ const (
// String returns the string format of WorkspaceSettingKey type.
func (key WorkspaceSettingKey) String() string {
switch key {
case WorkspaceDisallowSignUp:
return "disallow-signup"
case WorkspaceSecretSessionName:
return "secret-session-name"
}
return ""
return string(key)
}
type WorkspaceSetting struct {