Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ineffectual assignment #76540

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 0 additions & 3 deletions pkg/volume/glusterfs/glusterfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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)
Expand All @@ -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 {
Expand Down