mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-06-30 13:12:57 +00:00
fix: linting issues
This commit is contained in:
parent
f19943a42e
commit
4bfbf33249
@ -276,7 +276,7 @@ func getRunParams(flags *pflag.FlagSet, st *storage.Storage) *settings.Server {
|
|||||||
// if a flag is binded. Our alternative way is to manually check
|
// if a flag is binded. Our alternative way is to manually check
|
||||||
// the flag and then the value from env/config/gotten by viper.
|
// the flag and then the value from env/config/gotten by viper.
|
||||||
// https://github.com/spf13/viper/pull/331
|
// https://github.com/spf13/viper/pull/331
|
||||||
func getBoolParamB(flags *pflag.FlagSet, key string) (value bool, ok bool) {
|
func getBoolParamB(flags *pflag.FlagSet, key string) (value, ok bool) {
|
||||||
value, _ = flags.GetBool(key)
|
value, _ = flags.GetBool(key)
|
||||||
|
|
||||||
// If set on Flags, use it.
|
// If set on Flags, use it.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user