Skip to content

Commit b497386

Browse files
committed
Linting fixes
1 parent 2f31345 commit b497386

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

internal/generate/common/resource_identity.go

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ func TriBool(b bool) TriBoolean {
2828
} else {
2929
return TriBooleanFalse
3030
}
31-
3231
}
3332

3433
type Implementation string
@@ -57,32 +56,32 @@ func (r ResourceIdentity) HasResourceIdentity() bool {
5756
return r.IsParameterizedIdentity() || r.isARNIdentity || r.isSingletonIdentity || r.isCustomInherentRegionIdentity
5857
}
5958

60-
func (d ResourceIdentity) HasInherentRegionIdentity() bool {
61-
return d.isARNIdentity || d.isCustomInherentRegionIdentity
59+
func (r ResourceIdentity) HasInherentRegionIdentity() bool {
60+
return r.isARNIdentity || r.isCustomInherentRegionIdentity
6261
}
6362

64-
func (d ResourceIdentity) IsARNIdentity() bool {
65-
return d.isARNIdentity
63+
func (r ResourceIdentity) IsARNIdentity() bool {
64+
return r.isARNIdentity
6665
}
6766

68-
func (d ResourceIdentity) IsCustomInherentRegionIdentity() bool {
69-
return d.isCustomInherentRegionIdentity
67+
func (r ResourceIdentity) IsCustomInherentRegionIdentity() bool {
68+
return r.isCustomInherentRegionIdentity
7069
}
7170

7271
func (r ResourceIdentity) IsParameterizedIdentity() bool {
7372
return len(r.IdentityAttributes) > 0
7473
}
7574

76-
func (d ResourceIdentity) IsSingletonIdentity() bool {
77-
return d.isSingletonIdentity
75+
func (r ResourceIdentity) IsSingletonIdentity() bool {
76+
return r.isSingletonIdentity
7877
}
7978

80-
func (d ResourceIdentity) IdentityAttribute() string {
81-
return namesgen.ConstOrQuote(d.IdentityAttributeName())
79+
func (r ResourceIdentity) IdentityAttribute() string {
80+
return namesgen.ConstOrQuote(r.IdentityAttributeName())
8281
}
8382

84-
func (d ResourceIdentity) IdentityAttributeName() string {
85-
return d.identityAttributeName
83+
func (r ResourceIdentity) IdentityAttributeName() string {
84+
return r.identityAttributeName
8685
}
8786

8887
func (r ResourceIdentity) HasIdentityDuplicateAttrs() bool {
@@ -269,5 +268,4 @@ func parseIdentityDuplicateAttrNames(args Args, implementation Implementation, d
269268
}
270269
})
271270
d.IdentityDuplicateAttrNames = slices.Compact(attrs)
272-
273271
}

0 commit comments

Comments
 (0)