Skip to content

Commit df072cf

Browse files
committed
lint
1 parent 38293c8 commit df072cf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pkg/servicenow/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,8 +548,9 @@ func (c *Client) GetCatalogItemVariablesPlusSets(ctx context.Context, itemSysID
548548
}
549549
}
550550

551+
allRaw := itemVarsRaw
551552
// Fetch choices for ALL variables (item + set) so selects have options
552-
allRaw := append(itemVarsRaw, setVarsRaw...)
553+
allRaw = append(allRaw, setVarsRaw...)
553554
varIDs := make([]string, 0, len(allRaw))
554555
for _, v := range allRaw {
555556
varIDs = append(varIDs, v.SysID)

pkg/servicenow/model.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ type LabelEntryName struct {
243243
LabelName string `json:"label.name"`
244244
}
245245

246-
// ServiceNow returns type in different formats
246+
// ServiceNow returns type in different formats.
247247
// Example of formats accepted:
248248
// 8, "8", "", null, {"value":"8","display_value":"Reference"}
249249
func (t *VariableType) UnmarshalJSON(b []byte) error {

0 commit comments

Comments
 (0)