Skip to content

Commit 460c578

Browse files
author
Henrique Sato
committed
Fix lint
1 parent 57d76d8 commit 460c578

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cli/completer.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,13 @@ func buildArgOptions(response map[string]interface{}, hasID bool) []argOption {
124124
}
125125
var id, name, detail string
126126
if resource["id"] != nil {
127-
switch rawId := resource["id"].(type) {
127+
switch rawID := resource["id"].(type) {
128128
case string:
129-
id = rawId
129+
id = rawID
130130
case float64:
131-
id = strconv.FormatFloat(rawId, 'f', -1, 64)
131+
id = strconv.FormatFloat(rawID, 'f', -1, 64)
132132
default:
133-
panic(fmt.Errorf("detected an invalid type at path (%v:%T). This should have been caught during validation, indicating a bug in CloudMonkey. Please report this issue", rawId, rawId))
133+
panic(fmt.Errorf("detected an invalid type at path (%v:%T). This should have been caught during validation, indicating a bug in CloudMonkey. Please report this issue", rawID, rawID))
134134
}
135135
}
136136
if resource["name"] != nil {

0 commit comments

Comments
 (0)