Skip to content

Commit 9a0efe9

Browse files
authored
chore: replace unused parameter with blank identifier in receiver definitions (st1006) (#1275)
https://staticcheck.dev/docs/checks/#ST1006
1 parent 4b3f496 commit 9a0efe9

File tree

8 files changed

+33
-33
lines changed

8 files changed

+33
-33
lines changed

v2/pkg/engine/plan/plan.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func (s *SynchronousResponsePlan) SetFlushInterval(interval int64) {
2525
s.FlushInterval = interval
2626
}
2727

28-
func (_ *SynchronousResponsePlan) PlanKind() Kind {
28+
func (*SynchronousResponsePlan) PlanKind() Kind {
2929
return SynchronousResponseKind
3030
}
3131

@@ -38,6 +38,6 @@ func (s *SubscriptionResponsePlan) SetFlushInterval(interval int64) {
3838
s.FlushInterval = interval
3939
}
4040

41-
func (_ *SubscriptionResponsePlan) PlanKind() Kind {
41+
func (*SubscriptionResponsePlan) PlanKind() Kind {
4242
return SubscriptionResponseKind
4343
}

v2/pkg/engine/resolve/fetch.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func (ppc *PostProcessingConfiguration) Equals(other *PostProcessingConfiguratio
152152
return true
153153
}
154154

155-
func (_ *SingleFetch) FetchKind() FetchKind {
155+
func (*SingleFetch) FetchKind() FetchKind {
156156
return FetchKindSingle
157157
}
158158

@@ -200,7 +200,7 @@ type BatchInput struct {
200200
Footer InputTemplate
201201
}
202202

203-
func (_ *BatchEntityFetch) FetchKind() FetchKind {
203+
func (*BatchEntityFetch) FetchKind() FetchKind {
204204
return FetchKindEntityBatch
205205
}
206206

@@ -239,7 +239,7 @@ type EntityInput struct {
239239
Footer InputTemplate
240240
}
241241

242-
func (_ *EntityFetch) FetchKind() FetchKind {
242+
func (*EntityFetch) FetchKind() FetchKind {
243243
return FetchKindEntity
244244
}
245245

@@ -260,7 +260,7 @@ func (p *ParallelListItemFetch) DependenciesCoordinates() []FetchDependency {
260260
return p.Fetch.FetchConfiguration.CoordinateDependencies
261261
}
262262

263-
func (_ *ParallelListItemFetch) FetchKind() FetchKind {
263+
func (*ParallelListItemFetch) FetchKind() FetchKind {
264264
return FetchKindParallelListItem
265265
}
266266

v2/pkg/engine/resolve/node_array.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type IntrospectionData struct {
2020
IncludeDeprecatedVariableName string
2121
}
2222

23-
func (_ *Array) NodeKind() NodeKind {
23+
func (*Array) NodeKind() NodeKind {
2424
return NodeKindArray
2525
}
2626

@@ -59,23 +59,23 @@ func (a *Array) Equals(n Node) bool {
5959

6060
type EmptyArray struct{}
6161

62-
func (_ *EmptyArray) Copy() Node {
62+
func (*EmptyArray) Copy() Node {
6363
return &EmptyArray{}
6464
}
6565

66-
func (_ *EmptyArray) NodeKind() NodeKind {
66+
func (*EmptyArray) NodeKind() NodeKind {
6767
return NodeKindEmptyArray
6868
}
6969

70-
func (_ *EmptyArray) NodePath() []string {
70+
func (*EmptyArray) NodePath() []string {
7171
return nil
7272
}
7373

74-
func (_ *EmptyArray) NodeNullable() bool {
74+
func (*EmptyArray) NodeNullable() bool {
7575
return false
7676
}
7777

78-
func (_ *EmptyArray) Equals(n Node) bool {
78+
func (*EmptyArray) Equals(n Node) bool {
7979
_, ok := n.(*EmptyArray)
8080
return ok
8181
}

v2/pkg/engine/resolve/node_custom.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type CustomNode struct {
1414
Path []string
1515
}
1616

17-
func (_ *CustomNode) NodeKind() NodeKind {
17+
func (*CustomNode) NodeKind() NodeKind {
1818
return NodeKindCustom
1919
}
2020

v2/pkg/engine/resolve/node_enum.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type Enum struct {
1111
InaccessibleValues []string
1212
}
1313

14-
func (_ *Enum) NodeKind() NodeKind {
14+
func (*Enum) NodeKind() NodeKind {
1515
return NodeKindEnum
1616
}
1717

v2/pkg/engine/resolve/node_object.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func (o *Object) Copy() Node {
2727
}
2828
}
2929

30-
func (_ *Object) NodeKind() NodeKind {
30+
func (*Object) NodeKind() NodeKind {
3131
return NodeKindObject
3232
}
3333

@@ -65,24 +65,24 @@ func (o *Object) Equals(n Node) bool {
6565

6666
type EmptyObject struct{}
6767

68-
func (_ *EmptyObject) NodeKind() NodeKind {
68+
func (*EmptyObject) NodeKind() NodeKind {
6969
return NodeKindEmptyObject
7070
}
7171

72-
func (_ *EmptyObject) NodePath() []string {
72+
func (*EmptyObject) NodePath() []string {
7373
return nil
7474
}
7575

76-
func (_ *EmptyObject) NodeNullable() bool {
76+
func (*EmptyObject) NodeNullable() bool {
7777
return false
7878
}
7979

80-
func (_ *EmptyObject) Equals(n Node) bool {
80+
func (*EmptyObject) Equals(n Node) bool {
8181
_, ok := n.(*EmptyObject)
8282
return ok
8383
}
8484

85-
func (_ *EmptyObject) Copy() Node {
85+
func (*EmptyObject) Copy() Node {
8686
return &EmptyObject{}
8787
}
8888

v2/pkg/engine/resolve/node_scalar.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ type Scalar struct {
88
Export *FieldExport `json:"export,omitempty"`
99
}
1010

11-
func (_ *Scalar) NodeKind() NodeKind {
11+
func (*Scalar) NodeKind() NodeKind {
1212
return NodeKindScalar
1313
}
1414

@@ -88,7 +88,7 @@ func (s *String) Equals(n Node) bool {
8888
return true
8989
}
9090

91-
func (_ *String) NodeKind() NodeKind {
91+
func (*String) NodeKind() NodeKind {
9292
return NodeKindString
9393
}
9494

@@ -105,7 +105,7 @@ type StaticString struct {
105105
Value string
106106
}
107107

108-
func (_ *StaticString) NodeKind() NodeKind {
108+
func (*StaticString) NodeKind() NodeKind {
109109
return NodeKindStaticString
110110
}
111111

@@ -147,7 +147,7 @@ type Boolean struct {
147147
Export *FieldExport `json:"export,omitempty"`
148148
}
149149

150-
func (_ *Boolean) NodeKind() NodeKind {
150+
func (*Boolean) NodeKind() NodeKind {
151151
return NodeKindBoolean
152152
}
153153

@@ -190,7 +190,7 @@ type Float struct {
190190
Export *FieldExport `json:"export,omitempty"`
191191
}
192192

193-
func (_ *Float) NodeKind() NodeKind {
193+
func (*Float) NodeKind() NodeKind {
194194
return NodeKindFloat
195195
}
196196

@@ -233,7 +233,7 @@ type Integer struct {
233233
Export *FieldExport `json:"export,omitempty"`
234234
}
235235

236-
func (_ *Integer) NodeKind() NodeKind {
236+
func (*Integer) NodeKind() NodeKind {
237237
return NodeKindInteger
238238
}
239239

@@ -277,7 +277,7 @@ type BigInt struct {
277277
Export *FieldExport `json:"export,omitempty"`
278278
}
279279

280-
func (_ *BigInt) NodeKind() NodeKind {
280+
func (*BigInt) NodeKind() NodeKind {
281281
return NodeKindBigInt
282282
}
283283

@@ -318,23 +318,23 @@ func (b *BigInt) Equals(n Node) bool {
318318
type Null struct {
319319
}
320320

321-
func (_ *Null) NodeKind() NodeKind {
321+
func (*Null) NodeKind() NodeKind {
322322
return NodeKindNull
323323
}
324324

325-
func (_ *Null) NodePath() []string {
325+
func (*Null) NodePath() []string {
326326
return nil
327327
}
328328

329-
func (_ *Null) NodeNullable() bool {
329+
func (*Null) NodeNullable() bool {
330330
return true
331331
}
332332

333-
func (_ *Null) Copy() Node {
333+
func (*Null) Copy() Node {
334334
return &Null{}
335335
}
336336

337-
func (_ *Null) Equals(n Node) bool {
337+
func (*Null) Equals(n Node) bool {
338338
_, ok := n.(*Null)
339339
return ok
340340
}

v2/pkg/engine/resolve/variables.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (c *ContextVariable) Equals(another Variable) bool {
8181
return true
8282
}
8383

84-
func (_ *ContextVariable) GetVariableKind() VariableKind {
84+
func (*ContextVariable) GetVariableKind() VariableKind {
8585
return ContextVariableKind
8686
}
8787

0 commit comments

Comments
 (0)