From 69efd487098277d7ec1d2f8099f3e53051712175 Mon Sep 17 00:00:00 2001 From: metafates Date: Mon, 8 Aug 2022 17:28:35 +0300 Subject: [PATCH] fix: quickfix --- .goreleaser.yaml | 2 +- provider/provider.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 161b13d1..33efc0c6 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -102,5 +102,5 @@ release: # You can change the name of the release. # Default is `{{.Tag}}` on OSS and `{{.PrefixedTag}}` on Pro. - name_template: "{{.ProjectName}}-v{{.Version}}" + name_template: "{{.ProjectName}} v{{.Version}}" diff --git a/provider/provider.go b/provider/provider.go index 9e8e0d25..63c8e0f7 100644 --- a/provider/provider.go +++ b/provider/provider.go @@ -1,7 +1,6 @@ package provider import ( - "errors" "github.com/metafates/mangal/config" "github.com/metafates/mangal/filesystem" "github.com/metafates/mangal/provider/mangadex" @@ -51,7 +50,7 @@ func DefaultProviders() map[string]*Provider { func CustomProviders() (map[string]*Provider, error) { if exists := lo.Must(filesystem.Get().Exists(viper.GetString(config.SourcesPath))); !exists { - return nil, errors.New("sources directory does not exist") + return make(map[string]*Provider), nil } files, err := filesystem.Get().ReadDir(viper.GetString(config.SourcesPath))