remove repeat const declaration

This commit is contained in:
tanshanshan 2016-11-18 10:14:54 +08:00
parent cc0406ca26
commit 2e0ea0bf8f

View File

@ -97,12 +97,10 @@ func isSysFSWritable() (bool, error) {
}
for _, mountPoint := range mountPoints {
const sysfsDevice = "sysfs"
if mountPoint.Type != sysfsDevice {
continue
}
// Check whether sysfs is 'rw'
const permWritable = "rw"
if len(mountPoint.Opts) > 0 && mountPoint.Opts[0] == permWritable {
return true, nil
}