Skip to content

Commit 98c976a

Browse files
committed
Clean ineffectual assignment
Signed-off-by: ialidzhikov <[email protected]>
1 parent 1b9206a commit 98c976a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/volume/glusterfs/glusterfs.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,6 @@ func (b *glusterfsMounter) setUpAtInternal(dir string) error {
328328

329329
if b.readOnly {
330330
options = append(options, "ro")
331-
332331
}
333332

334333
// 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 {
348347

349348
// If logfile has not been provided, create driver specific log file.
350349
if !hasLogFile {
351-
log = ""
352350
p := path.Join(b.glusterfs.plugin.host.GetPluginDir(glusterfsPluginName), b.glusterfs.volName)
353351
if err := os.MkdirAll(p, 0750); err != nil {
354352
return fmt.Errorf("failed to create directory %v: %v", p, err)
@@ -361,7 +359,6 @@ func (b *glusterfsMounter) setUpAtInternal(dir string) error {
361359

362360
// Use derived log file in gluster fuse mount
363361
options = append(options, "log-file="+log)
364-
365362
}
366363

367364
if !hasLogLevel {

0 commit comments

Comments
 (0)