mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
remove repeat const declaration
This commit is contained in:
parent
cc0406ca26
commit
2e0ea0bf8f
@ -97,12 +97,10 @@ func isSysFSWritable() (bool, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, mountPoint := range mountPoints {
|
for _, mountPoint := range mountPoints {
|
||||||
const sysfsDevice = "sysfs"
|
|
||||||
if mountPoint.Type != sysfsDevice {
|
if mountPoint.Type != sysfsDevice {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
// Check whether sysfs is 'rw'
|
// Check whether sysfs is 'rw'
|
||||||
const permWritable = "rw"
|
|
||||||
if len(mountPoint.Opts) > 0 && mountPoint.Opts[0] == permWritable {
|
if len(mountPoint.Opts) > 0 && mountPoint.Opts[0] == permWritable {
|
||||||
return true, nil
|
return true, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user