Skip to content

Commit

Permalink
fix: quickfix
Browse files Browse the repository at this point in the history
  • Loading branch information
metafates committed Aug 8, 2022
1 parent c4b952a commit 69efd48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}"

3 changes: 1 addition & 2 deletions provider/provider.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package provider

import (
"errors"
"github.com/metafates/mangal/config"
"github.com/metafates/mangal/filesystem"
"github.com/metafates/mangal/provider/mangadex"
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 69efd48

Please sign in to comment.