mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +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:
@@ -90,7 +90,7 @@ func matchFileSimple(file string, regExps []*regexp.Regexp) bool {
|
||||
func matchExtension(path string, extensions []string) bool {
|
||||
ext := filepath.Ext(path)
|
||||
for _, e := range extensions {
|
||||
if strings.ToLower(ext) == strings.ToLower("."+e) {
|
||||
if strings.EqualFold(ext, "."+e) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user