Cleanup fixes (#1422)

* cleanup: remove dead code

removing some code that does nothing

* cleanup: fixing usage of deprecated gqlgen/graphql api in api/changeset_translator

* cleanup: changing to recommended comparison methods

Changing byte and case-insensitive string comparison to the recommended methods.

* cleanup: making staticcheck happy
This commit is contained in:
EnameEtavir
2021-05-25 03:03:09 +02:00
committed by GitHub
parent d326d4380f
commit 5c4351f338
9 changed files with 8 additions and 24 deletions

View File

@@ -573,7 +573,7 @@ func (c Client) FindStashBoxPerformerByName(name string) (*models.ScrapedScenePe
var ret *models.ScrapedScenePerformer
for _, performer := range performers.SearchPerformer {
if strings.ToLower(performer.Name) == strings.ToLower(name) {
if strings.EqualFold(performer.Name, name) {
ret = performerFragmentToScrapedScenePerformer(*performer)
}
}