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