Skip to content

Commit aa51e63

Browse files
committed
Fix linting issues
1 parent 480d183 commit aa51e63

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

errchkjson.go

+10-10
Original file line numberDiff line numberDiff line change
@@ -308,14 +308,14 @@ func (e *errchkjson) inspectArgs(pass *analysis.Pass, args []ast.Expr) {
308308
}
309309

310310
// Construct *types.Interface for interface encoding.TextMarshaler
311-
// type TextMarshaler interface {
312-
// MarshalText() (text []byte, err error)
313-
// }
314311
//
312+
// type TextMarshaler interface {
313+
// MarshalText() (text []byte, err error)
314+
// }
315315
func textMarshalerInterface() *types.Interface {
316316
textMarshalerInterface := types.NewInterfaceType([]*types.Func{
317-
types.NewFunc(token.NoPos, nil, "MarshalText", types.NewSignature(
318-
nil, nil, types.NewTuple(
317+
types.NewFunc(token.NoPos, nil, "MarshalText", types.NewSignatureType(
318+
nil, nil, nil, nil, types.NewTuple(
319319
types.NewVar(token.NoPos, nil, "text",
320320
types.NewSlice(
321321
types.Universe.Lookup("byte").Type())),
@@ -328,14 +328,14 @@ func textMarshalerInterface() *types.Interface {
328328
}
329329

330330
// Construct *types.Interface for interface json.Marshaler
331-
// type Marshaler interface {
332-
// MarshalJSON() ([]byte, error)
333-
// }
334331
//
332+
// type Marshaler interface {
333+
// MarshalJSON() ([]byte, error)
334+
// }
335335
func jsonMarshalerInterface() *types.Interface {
336336
textMarshalerInterface := types.NewInterfaceType([]*types.Func{
337-
types.NewFunc(token.NoPos, nil, "MarshalJSON", types.NewSignature(
338-
nil, nil, types.NewTuple(
337+
types.NewFunc(token.NoPos, nil, "MarshalJSON", types.NewSignatureType(
338+
nil, nil, nil, nil, types.NewTuple(
339339
types.NewVar(token.NoPos, nil, "",
340340
types.NewSlice(
341341
types.Universe.Lookup("byte").Type())),

0 commit comments

Comments
 (0)