mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 03:57:41 +00:00
Remove unnecessary int type conversion
Signed-off-by: mantuliu <240951888@qq.com>
This commit is contained in:
parent
f33498a825
commit
99ad88a261
@ -136,7 +136,7 @@ func calcRestartCountByLogDir(path string) (int, error) {
|
||||
if _, err := os.Stat(path); err != nil {
|
||||
return 0, nil
|
||||
}
|
||||
restartCount := int(0)
|
||||
restartCount := 0
|
||||
files, err := os.ReadDir(path)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
|
Loading…
Reference in New Issue
Block a user