mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
Merge pull request #71294 from Chenditang/verify-golint
Fix golint verify errors.
This commit is contained in:
commit
2fd1949b7f
@ -353,10 +353,10 @@ func (m *FakeMetadata) GetMetadata(key string) (string, error) {
|
||||
}
|
||||
}
|
||||
|
||||
return "", nil
|
||||
} else {
|
||||
return "", nil
|
||||
}
|
||||
|
||||
return "", nil
|
||||
}
|
||||
|
||||
// FakeELB is a fake ELB client used for testing
|
||||
|
@ -201,9 +201,9 @@ func PathExists(path string) (bool, error) {
|
||||
return false, nil
|
||||
} else if IsCorruptedMnt(err) {
|
||||
return true, err
|
||||
} else {
|
||||
return false, err
|
||||
}
|
||||
|
||||
return false, err
|
||||
}
|
||||
|
||||
// IsCorruptedMnt return true if err is about corrupted mount point
|
||||
|
Loading…
Reference in New Issue
Block a user