mirror of https://github.com/qwc/backive.git
Fix last linting errors
This commit is contained in:
parent
a64be87c6f
commit
4807162a0a
|
@ -48,9 +48,9 @@ func Load() *Configuration {
|
||||||
vconfig := CreateViper()
|
vconfig := CreateViper()
|
||||||
if err := vconfig.ReadInConfig(); err != nil {
|
if err := vconfig.ReadInConfig(); err != nil {
|
||||||
if _, ok := err.(viper.ConfigFileNotFoundError); ok {
|
if _, ok := err.(viper.ConfigFileNotFoundError); ok {
|
||||||
panic(fmt.Errorf("Fatal: No config file could be found!"))
|
panic(fmt.Errorf("Fatal: No config file could be found"))
|
||||||
}
|
}
|
||||||
panic(fmt.Errorf("Fatal error config file: %w \n", err))
|
panic(fmt.Errorf("Fatal error config file: %w ", err))
|
||||||
}
|
}
|
||||||
|
|
||||||
var cfg *Configuration
|
var cfg *Configuration
|
||||||
|
|
Loading…
Reference in New Issue