Skip to content

Commit f725257

Browse files
committed
fix: golint check error
1 parent bc4f439 commit f725257

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/smb/nodeserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func (d *Driver) NodeUnpublishVolume(ctx context.Context, req *csi.NodeUnpublish
119119
// NodeStageVolume mount the volume to a staging path
120120
func (d *Driver) NodeStageVolume(ctx context.Context, req *csi.NodeStageVolumeRequest) (*csi.NodeStageVolumeResponse, error) {
121121
// regex to mask username and password in log messages
122-
var reqSecretsRegex, _ = regexp.Compile("map\\[password:.*? ")
122+
var reqSecretsRegex, _ = regexp.Compile(`map\[password:.*? `)
123123
s := fmt.Sprintf("NodeStageVolume called with request %v", *req)
124124
klog.V(5).Info(reqSecretsRegex.ReplaceAllString(s, "map[password:**** "))
125125

0 commit comments

Comments
 (0)