Skip to content

Commit

Permalink
fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Bisgaard committed Oct 19, 2023
1 parent aea6ce3 commit faf9c6e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions netbox/data_source_netbox_available_prefix.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
)

func dataSourceNetboxAvailablePrefix() *schema.Resource {

return &schema.Resource{
Read: dataSourceNetboxAvailablePrefixRead,
Description: `:meta:subcategory:IP Address Management (IPAM):`,
Expand Down Expand Up @@ -46,8 +45,8 @@ func dataSourceNetboxAvailablePrefixRead(d *schema.ResourceData, m interface{})

params := ipam.NewIpamPrefixesAvailablePrefixesListParams()

if prefix_id, ok := d.Get("prefix_id").(int); ok && prefix_id != 0 {
params.ID = int64(prefix_id)
if prefixID, ok := d.Get("prefix_id").(int); ok && prefixID != 0 {
params.ID = int64(prefixID)
}

res, err := api.Ipam.IpamPrefixesAvailablePrefixesList(params, nil)
Expand Down

0 comments on commit faf9c6e

Please sign in to comment.