Skip to content

Commit 018f1b0

Browse files
committed
fix linter issues
1 parent 5f34d3a commit 018f1b0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

internal/cmd/beta/server/create/create.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,13 @@ func NewCmd(p *print.Printer) *cobra.Command {
128128
if bootVolumeSize == 0 {
129129
p.Warn("Boot volume size must be provided when `source_type` is `image`.\n")
130130
}
131-
cmd.MarkFlagRequired(bootVolumeSizeFlag)
131+
err := cmd.MarkFlagRequired(bootVolumeSizeFlag)
132+
cobra.CheckErr(err)
132133
}
133134

134135
if bootVolumeSourceId == "" && bootVolumeSourceType == "" {
135-
cmd.MarkFlagRequired(imageIdFlag)
136+
err := cmd.MarkFlagRequired(imageIdFlag)
137+
cobra.CheckErr(err)
136138
}
137139

138140
if imageId != "" && (bootVolumeSourceId != "" || bootVolumeSourceType != "") {

0 commit comments

Comments
 (0)