Skip to content

Commit 538b792

Browse files
authored
list service prints empty JSON string when none found (#346)
1 parent 874f261 commit 538b792

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cmd/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ var listServiceCmd = &cobra.Command{
8888
Short: "Lists services",
8989
Long: `Lists services`,
9090
Run: func(cmd *cobra.Command, args []string) {
91-
var list []opslevel.Service
91+
list := []opslevel.Service{}
9292
client := getClientGQL()
9393
resp, err := client.ListServices(nil)
9494
cobra.CheckErr(err)

0 commit comments

Comments
 (0)