mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
Remove else statement with single return sentence
This commit is contained in:
parent
161fc48b5a
commit
3194260c05
@ -47,9 +47,8 @@ type GenericError struct {
|
||||
func (e *GenericError) Error() string {
|
||||
if e.Details != "" {
|
||||
return fmt.Sprintf("%s: %s", e.Err, e.Details)
|
||||
} else {
|
||||
return fmt.Sprintf("%s", e.Err)
|
||||
}
|
||||
return fmt.Sprintf("%s", e.Err)
|
||||
}
|
||||
|
||||
// AuthenticateUserRequest represents the body of a request to POST /auth
|
||||
|
Loading…
Reference in New Issue
Block a user