Skip to content

Commit 1a67bad

Browse files
committed
remove unnecessary normalization of nil value in response items after feedback
1 parent 7ca2dce commit 1a67bad

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

internal/cmd/server/list/list.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
7979
}
8080

8181
items := resp.GetItems()
82-
if items == nil {
83-
items = []iaas.Server{}
84-
}
8582

8683
projectLabel, err := projectname.GetProjectName(ctx, params.Printer, params.CliVersion, cmd)
8784
if err != nil {

0 commit comments

Comments
 (0)