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

Correct golint warning #478

Merged
merged 1 commit into from
Apr 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Correct golint warning
  • Loading branch information
gliptak authored Apr 5, 2020
commit e012f323afa3957570489dfd865367160404a76a
5 changes: 2 additions & 3 deletions pkg/driver/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,9 @@ func (d *controllerService) CreateSnapshot(ctx context.Context, req *csi.CreateS
if snapshot != nil {
if snapshot.SourceVolumeID != volumeID {
return nil, status.Errorf(codes.AlreadyExists, "Snapshot %s already exists for different volume (%s)", snapshotName, snapshot.SourceVolumeID)
} else {
klog.V(4).Infof("Snapshot %s of volume %s already exists; nothing to do", snapshotName, volumeID)
return newCreateSnapshotResponse(snapshot)
}
klog.V(4).Infof("Snapshot %s of volume %s already exists; nothing to do", snapshotName, volumeID)
return newCreateSnapshotResponse(snapshot)
}
opts := &cloud.SnapshotOptions{
Tags: map[string]string{cloud.SnapshotNameTagKey: snapshotName},
Expand Down