Skip to content

Commit 9143222

Browse files
committed
fixed golangci-lint
1 parent 978ece3 commit 9143222

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

netbox/data_source_netbox_device_module_bay.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ func dataSourceNetboxDeviceModuleBayRead(d *schema.ResourceData, m interface{})
5151
params := dcim.NewDcimModuleBaysListParams()
5252

5353
params.Limit = int64ToPtr(2)
54-
if deviceId, ok := d.Get("device_id").(int); ok && deviceId != 0 {
55-
deviceId := strconv.Itoa(deviceId)
56-
params.SetDeviceID(&deviceId)
54+
if deviceID, ok := d.Get("device_id").(int); ok && deviceID != 0 {
55+
deviceID := strconv.Itoa(deviceID)
56+
params.SetDeviceID(&deviceID)
5757
}
5858
if name, ok := d.Get("name").(string); ok && name != "" {
5959
params.SetName(&name)

0 commit comments

Comments
 (0)