added linter conf, more code cleanup

This commit is contained in:
2023-06-14 16:28:27 +02:00
parent 02e42a7e2b
commit dd8727a1fa
2 changed files with 93 additions and 1 deletions

View File

@@ -52,7 +52,7 @@ func (m UploadManager) Upload() (float64, error) {
if err != nil {
return 0, err
}
if reBandwidth.MatchString(string(out)) {
if reBandwidth.MatchString(string(out)) { //nolint:mirror
up, err := strconv.Atoi(reBandwidth.FindAllStringSubmatch(string(out), -1)[0][1])
if err != nil {
return 0, err