mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-06 07:26:47 +00:00
linters: Bump golangci-lint version to v1.52.2 and fix issues (#1169)
* fix linter issues * linter issue suppressing and fixing * change linter version and linter issues fix * Bump version
This commit is contained in:
@@ -492,7 +492,7 @@ func GetPackageName(name string, capital bool) string {
|
||||
i = len(newStrings) - 1
|
||||
}
|
||||
if capital {
|
||||
return strings.Replace(strings.Title(newStrings[i]), "_", " ", -1) //nolint:staticcheck // Ignore Title usage warning
|
||||
return strings.Replace(strings.Title(newStrings[i]), "_", " ", -1)
|
||||
}
|
||||
return newStrings[i]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user