mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
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:
@@ -659,13 +659,7 @@ func (c mappedScraperAttrConfig) hasSplit() bool {
|
||||
|
||||
func (c mappedScraperAttrConfig) concatenateResults(nodes []string) string {
|
||||
separator := c.Concat
|
||||
result := []string{}
|
||||
|
||||
for _, text := range nodes {
|
||||
result = append(result, text)
|
||||
}
|
||||
|
||||
return strings.Join(result, separator)
|
||||
return strings.Join(nodes, separator)
|
||||
}
|
||||
|
||||
func (c mappedScraperAttrConfig) cleanResults(nodes []string) []string {
|
||||
|
||||
Reference in New Issue
Block a user