Skip to content

Commit a42d06d

Browse files
committed
lint
1 parent b8697ba commit a42d06d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

internal/locality/regional/ids.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package regional
22

33
import (
4+
"errors"
45
"fmt"
56
"strings"
67

@@ -127,5 +128,5 @@ func ResolveRegionAndID(
127128
return region, ID, nil
128129
}
129130

130-
return "", "", fmt.Errorf("cannot resolve identity: both identity.id and state ID are empty")
131+
return "", "", errors.New("cannot resolve identity: both identity.id and state ID are empty")
131132
}

internal/services/vpc/helpers.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ func NewAPIWithRegionAndID(m any, id string) (*vpc.API, scw.Region, string, erro
4343
return vpcAPI, region, ID, err
4444
}
4545

46-
func NewAPIWithRegionAndIDFromState(m interface{}, d *schema.ResourceData) (*vpc.API, scw.Region, string, error) {
46+
func NewAPIWithRegionAndIDFromState(m interface{}, d *schema.ResourceData) (
47+
*vpc.API,
48+
scw.Region,
49+
string,
50+
error) {
4751
vpcAPI := vpc.NewAPI(meta.ExtractScwClient(m))
4852

4953
region, ID, err := regional.ResolveRegionAndID(d, func(d *schema.ResourceData) (scw.Region, error) {

0 commit comments

Comments
 (0)