Skip to content

Commit

Permalink
make not-equal operator consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
gaokevin1 committed Dec 17, 2024
1 parent d81a1c6 commit d8e8152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/models/authentication/oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func validateSystemProvider(h *helpers.Handler, m *OAuthProviderModel, name stri
func ensureNoCustomProviderFields(h *helpers.Handler, field any, fieldKey, name string) {
switch v := field.(type) {
case types.String:
if !v.IsUnknown() && !v.IsNull() {
if v.ValueString() != "" {
h.Error(fmt.Sprintf("The %s field is reserved for custom providers", fieldKey),
"%s is a system provider and cannot specify %s reserved for custom provider", name, fieldKey)
}
Expand Down

0 comments on commit d8e8152

Please sign in to comment.