Skip to content

Commit

Permalink
unused check
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed Dec 23, 2024
1 parent 3daad53 commit 9154b9e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/server/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -1397,10 +1397,6 @@ func validateUniqueNetworkIDs(d *schema.ResourceDiff) error {
}

id := hcloudutil.CastInt64(networkIDI)
if !ok {
return fmt.Errorf("network id has unexpected type: %T", networkIDI)
}

if uniqueNetworkIDs[id] {
return fmt.Errorf("server is only allowed to be attached to each network once: %d", networkIDI)
}
Expand Down

0 comments on commit 9154b9e

Please sign in to comment.