From 9154b9ee6c3230b6bca636683ffa3b11c8fc217e Mon Sep 17 00:00:00 2001 From: jo Date: Mon, 23 Dec 2024 18:00:58 +0100 Subject: [PATCH] unused check --- internal/server/resource.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/server/resource.go b/internal/server/resource.go index b61ce23c1..4f5b1efa1 100644 --- a/internal/server/resource.go +++ b/internal/server/resource.go @@ -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) }