MCPcopy Index your code
hub / github.com/coder/coder / isLegacyAutoThemePreference

Function isLegacyAutoThemePreference

coderd/users.go:1146–1153  ·  view source on GitHub ↗
(themePreference string)

Source from the content-addressed store, hash-verified

1144}
1145
1146func isLegacyAutoThemePreference(themePreference string) bool {
1147 switch themePreference {
1148 case "auto", "auto-protan-deuter", "auto-tritan":
1149 return true
1150 default:
1151 return false
1152 }
1153}
1154
1155func writeUserSettingsReadError(ctx context.Context, rw http.ResponseWriter, err error) {
1156 httpapi.Write(ctx, rw, http.StatusInternalServerError, codersdk.Response{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected