mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 21:17:58 +08:00
lint: upgrade golangci-lint
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
committed by
Ravi Chamarthy
parent
5f04092e71
commit
ac3801ea2d
@@ -1,6 +1,7 @@
|
||||
package monitoring
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"math"
|
||||
"os"
|
||||
"path/filepath"
|
||||
@@ -28,8 +29,9 @@ func getDirSize(path string) (int64, error) {
|
||||
if !info.IsDir() {
|
||||
size += info.Size()
|
||||
}
|
||||
|
||||
return err
|
||||
})
|
||||
|
||||
return size, err
|
||||
return size, fmt.Errorf("getDirSize: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user