Skip to content

Commit

Permalink
fix linter again (#755)
Browse files Browse the repository at this point in the history
  • Loading branch information
Denchick authored Sep 3, 2024
1 parent e898f12 commit 02ddedf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/auth/krb5.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (k *Kerberos) Process(cl client.Client) (cred *credentials.Credentials, err
if status.Code != gssapi.StatusComplete && status.Code != gssapi.StatusContinueNeeded {
errText := fmt.Sprintf("Kerberos validation error: %v", status)
log.Print(errText)
return nil, fmt.Errorf(errText)
return nil, fmt.Errorf("%s", errText)
}
if status.Code == gssapi.StatusContinueNeeded {
errText := "Kerberos GSS-API continue needed"
Expand All @@ -106,6 +106,6 @@ func (k *Kerberos) Process(cl client.Client) (cred *credentials.Credentials, err
} else {
errText := "Kerberos authentication failed"
log.Print(errText)
return nil, fmt.Errorf(errText)
return nil, fmt.Errorf("%s", errText)
}
}
2 changes: 1 addition & 1 deletion pkg/datashard/datashard.go
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ func (sh *Conn) Auth(sm *pgproto3.StartupMessage) error {
return err
}
case *pgproto3.ErrorResponse:
return fmt.Errorf(v.Message)
return fmt.Errorf("%s", v.Message)
case *pgproto3.ParameterStatus:
if !sh.ps.Save(shard.ParameterStatus{
Name: v.Name,
Expand Down
2 changes: 1 addition & 1 deletion router/relay/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ func (rst *RelayStateImpl) ProcCommand(query pgproto3.FrontendMessage, waitForRe
case *pgproto3.CommandComplete:
return nil
case *pgproto3.ErrorResponse:
return fmt.Errorf(v.Message)
return fmt.Errorf("%s", v.Message)
default:
spqrlog.Zero.Debug().
Uint("client", rst.Client().ID()).
Expand Down

0 comments on commit 02ddedf

Please sign in to comment.