mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Make sure golint pass on the code base
This commit is contained in:
parent
8781648af9
commit
bb8e61c7c5
59 changed files with 322 additions and 171 deletions
|
@ -33,11 +33,7 @@ func (u User) ValidateUserCreation() error {
|
|||
return err
|
||||
}
|
||||
|
||||
if err := u.ValidatePassword(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return u.ValidatePassword()
|
||||
}
|
||||
|
||||
// ValidateUserModification validates user for modification.
|
||||
|
@ -54,11 +50,7 @@ func (u User) ValidateUserModification() error {
|
|||
return err
|
||||
}
|
||||
|
||||
if err := ValidateTheme(u.Theme); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return ValidateTheme(u.Theme)
|
||||
}
|
||||
|
||||
// ValidateUserLogin validates user credential requirements.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue