Clean ineffectual assignment

Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
k3s-v1.15.3
ialidzhikov 2019-04-13 16:23:07 +03:00
parent 1b9206a17c
commit 98c976ae4f
1 changed files with 0 additions and 3 deletions

View File

@ -328,7 +328,6 @@ func (b *glusterfsMounter) setUpAtInternal(dir string) error {
if b.readOnly {
options = append(options, "ro")
}
// Check for log-file,log-level options existence in user supplied mount options, if provided, use those.
@ -348,7 +347,6 @@ func (b *glusterfsMounter) setUpAtInternal(dir string) error {
// If logfile has not been provided, create driver specific log file.
if !hasLogFile {
log = ""
p := path.Join(b.glusterfs.plugin.host.GetPluginDir(glusterfsPluginName), b.glusterfs.volName)
if err := os.MkdirAll(p, 0750); err != nil {
return fmt.Errorf("failed to create directory %v: %v", p, err)
@ -361,7 +359,6 @@ func (b *glusterfsMounter) setUpAtInternal(dir string) error {
// Use derived log file in gluster fuse mount
options = append(options, "log-file="+log)
}
if !hasLogLevel {