mirror of
https://github.com/github/codeql.git
synced 2026-01-30 06:42:57 +01:00
Remove redundant code
RawMessage implements Marshaler and Unmarshaler, so these methods are covered by the two sections below
This commit is contained in:
@@ -101,14 +101,6 @@ module EncodingJson {
|
||||
hasQualifiedName("encoding/json", "Encoder", "SetIndent") and
|
||||
(inp.isParameter(_) and outp.isReceiver())
|
||||
or
|
||||
// signature: func (RawMessage).MarshalJSON() ([]byte, error)
|
||||
hasQualifiedName("encoding/json", "RawMessage", "MarshalJSON") and
|
||||
(inp.isReceiver() and outp.isResult(0))
|
||||
or
|
||||
// signature: func (*RawMessage).UnmarshalJSON(data []byte) error
|
||||
hasQualifiedName("encoding/json", "RawMessage", "UnmarshalJSON") and
|
||||
(inp.isParameter(0) and outp.isReceiver())
|
||||
or
|
||||
// signature: func (Marshaler).MarshalJSON() ([]byte, error)
|
||||
implements("encoding/json", "Marshaler", "MarshalJSON") and
|
||||
(inp.isReceiver() and outp.isResult(0))
|
||||
|
||||
Reference in New Issue
Block a user