From 2cac30b68ad96601c1455522a37df2d28201ad43 Mon Sep 17 00:00:00 2001 From: Marc Mettke Date: Mon, 30 Oct 2023 10:16:01 +0100 Subject: [PATCH] Update resource_branch.go Switching HasPrefix Parameters --- internal/provider/resource_branch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/provider/resource_branch.go b/internal/provider/resource_branch.go index 47f133d..2faabd3 100644 --- a/internal/provider/resource_branch.go +++ b/internal/provider/resource_branch.go @@ -222,5 +222,5 @@ func resourceBranchImport(ctx context.Context, d *schema.ResourceData, meta inte } func isValidBranchID(s string) bool { - return strings.HasPrefix("br-", s) + return strings.HasPrefix(s, "br-") }