mirror of
https://github.com/miniflux/v2.git
synced 2025-08-26 18:21:01 +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
|
@ -6,8 +6,8 @@ package model
|
|||
|
||||
import "github.com/miniflux/miniflux2/errors"
|
||||
|
||||
// GetThemes returns the list of available themes.
|
||||
func GetThemes() map[string]string {
|
||||
// Themes returns the list of available themes.
|
||||
func Themes() map[string]string {
|
||||
return map[string]string{
|
||||
"default": "Default",
|
||||
"black": "Black",
|
||||
|
@ -16,7 +16,7 @@ func GetThemes() map[string]string {
|
|||
|
||||
// ValidateTheme validates theme value.
|
||||
func ValidateTheme(theme string) error {
|
||||
for key := range GetThemes() {
|
||||
for key := range Themes() {
|
||||
if key == theme {
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue