Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
giftkugel committed Sep 11, 2024
1 parent c3dfec6 commit 8acc501
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,18 +299,15 @@ func (config *Config) Validate() error {
}

if config.GetAuthCookieName() == config.GetForwardAuthCookieName() {
invalidClient := fmt.Sprintf("auth cookie name should not equal forward auth cookie name")
return errors.New(invalidClient)
return errors.New("auth cookie name should not equal forward auth cookie name")
}

if config.GetAuthCookieName() == config.GetMessageCookieName() {
invalidClient := fmt.Sprintf("auth cookie name should not equal message cookie name")
return errors.New(invalidClient)
return errors.New("auth cookie name should not equal message cookie name")
}

if config.GetForwardAuthCookieName() == config.GetMessageCookieName() {
invalidClient := fmt.Sprintf("forward auth cookie name should not equal message cookie name")
return errors.New(invalidClient)
return errors.New("forward auth cookie name should not equal message cookie name")
}

return nil
Expand Down

0 comments on commit 8acc501

Please sign in to comment.