MM-52532: Fix golangci warnings (#23709)
https://mattermost.atlassian.net/browse/MM-52532 - Replace golint with revive - Add makezero linter - Fix all the required linter failures Some issues in enterprise and public modules are yet to be fixed. We send this to expediate things.
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
62a3ee8adc
Коммит
c249ba4a66
@@ -123,8 +123,8 @@ func UpdateAssetsSubpathInDir(subpath, directory string) error {
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "failed to open %s", walkPath)
|
||||
}
|
||||
new := strings.Replace(string(old), pathToReplace, newPath, -1)
|
||||
if err = os.WriteFile(walkPath, []byte(new), 0); err != nil {
|
||||
n := strings.Replace(string(old), pathToReplace, newPath, -1)
|
||||
if err = os.WriteFile(walkPath, []byte(n), 0); err != nil {
|
||||
return errors.Wrapf(err, "failed to update %s with subpath %s", walkPath, subpath)
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user