Skip to content

Commit

Permalink
style: fix indenting
Browse files Browse the repository at this point in the history
How I managed to mess it up and not run gofmt, I don't know.

Signed-off-by: Oula Kuuva <[email protected]>
  • Loading branch information
Oula Kuuva committed Feb 23, 2024
1 parent 18ebc15 commit b70c48f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions velero-plugin-for-gcp/volume_snapshotter.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,16 @@ func (b *VolumeSnapshotter) Init(config map[string]string) error {
b.snapshotProject = b.volumeProject
}

// get snapshot type from 'snapshotType' config key if specified,
// otherwise default to "STANDARD"
// get snapshot type from 'snapshotType' config key if specified,
// otherwise default to "STANDARD"
snapshotType := strings.ToUpper(config[snapshotTypeKey])
switch snapshotType {
case "":
b.snapshotType = "STANDARD"
case "STANDARD", "ARCHIVE":
b.snapshotType = snapshotType
default:
return errors.Errorf("unsupported snapshot type: %q", snapshotType)
return errors.Errorf("unsupported snapshot type: %q", snapshotType)
}

gce, err := compute.NewService(context.TODO(), clientOptions...)
Expand Down

0 comments on commit b70c48f

Please sign in to comment.