golint fix

This commit is contained in:
Shawn Smith
2018-11-01 08:17:29 +09:00
parent 6ecdf3c5c3
commit 15c6af0959

View File

@@ -53,6 +53,7 @@ func main() {
}
}
// DirSize returns the size of a directory
func DirSize(path string) (int64, error) {
var size int64
err := filepath.Walk(path, func(_ string, info os.FileInfo, err error) error {
@@ -61,5 +62,6 @@ func DirSize(path string) (int64, error) {
}
return err
})
return size, err
}