Satisfy the now-effective lll limit and the modernize linter
This commit is contained in:
@@ -42,8 +42,8 @@ func (a *app) loadConfig(cmd *cobra.Command, _ []string) error {
|
||||
|
||||
err := config.ReadInConfig()
|
||||
|
||||
var notFound viper.ConfigFileNotFoundError
|
||||
if errors.As(err, ¬Found) {
|
||||
_, isNotFound := errors.AsType[viper.ConfigFileNotFoundError](err)
|
||||
if isNotFound {
|
||||
a.config = config
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user