mirror of
https://github.com/stashapp/stash.git
synced 2025-12-07 17:02:38 +01:00
chore: use errors.New to replace fmt.Errorf with no parameters will much better (#4778)
This commit is contained in:
parent
27aef4ac2e
commit
ae1841efb0
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ func (i *Importer) fileJSONToFile(ctx context.Context, fileJSON jsonschema.DirEn
|
||||||
return i.baseFileJSONToBaseFile(ctx, ff)
|
return i.baseFileJSONToBaseFile(ctx, ff)
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil, fmt.Errorf("unknown file type")
|
return nil, errors.New("unknown file type")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (i *Importer) baseFileJSONToBaseFile(ctx context.Context, baseJSON *jsonschema.BaseFile) (*models.BaseFile, error) {
|
func (i *Importer) baseFileJSONToBaseFile(ctx context.Context, baseJSON *jsonschema.BaseFile) (*models.BaseFile, error) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue