x/ibc: fix missing return statement (#6099)
* enable the wsl linter Fix various wsl-related warnings. x/ibc/04-channel/keeper/handshake.go: fix missing return statement in ChanOpenTry(). * goimports -w files * remove unknown linter references * run make format * Revert "run make format" This reverts commit f810b62b9e4993f08506663d4e5f2ec2228a9863. * run make format
This commit is contained in:
@@ -42,7 +42,7 @@ func (ac *AminoCodec) MustUnmarshalBinaryLengthPrefixed(bz []byte, ptr ProtoMars
|
||||
ac.amino.MustUnmarshalBinaryLengthPrefixed(bz, ptr)
|
||||
}
|
||||
|
||||
func (ac *AminoCodec) MarshalJSON(o interface{}) ([]byte, error) { // nolint: stdmethods
|
||||
func (ac *AminoCodec) MarshalJSON(o interface{}) ([]byte, error) {
|
||||
return ac.amino.MarshalJSON(o)
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ func (ac *AminoCodec) MustMarshalJSON(o interface{}) []byte {
|
||||
return ac.amino.MustMarshalJSON(o)
|
||||
}
|
||||
|
||||
func (ac *AminoCodec) UnmarshalJSON(bz []byte, ptr interface{}) error { // nolint: stdmethods
|
||||
func (ac *AminoCodec) UnmarshalJSON(bz []byte, ptr interface{}) error {
|
||||
return ac.amino.UnmarshalJSON(bz, ptr)
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -34,10 +34,10 @@ type (
|
||||
}
|
||||
|
||||
JSONMarshaler interface {
|
||||
MarshalJSON(o interface{}) ([]byte, error) // nolint: stdmethods
|
||||
MarshalJSON(o interface{}) ([]byte, error)
|
||||
MustMarshalJSON(o interface{}) []byte
|
||||
|
||||
UnmarshalJSON(bz []byte, ptr interface{}) error // nolint: stdmethods
|
||||
UnmarshalJSON(bz []byte, ptr interface{}) error
|
||||
MustUnmarshalJSON(bz []byte, ptr interface{})
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ func (hc *HybridCodec) MustUnmarshalBinaryLengthPrefixed(bz []byte, ptr ProtoMar
|
||||
hc.proto.MustUnmarshalBinaryLengthPrefixed(bz, ptr)
|
||||
}
|
||||
|
||||
func (hc *HybridCodec) MarshalJSON(o interface{}) ([]byte, error) { // nolint: stdmethods
|
||||
func (hc *HybridCodec) MarshalJSON(o interface{}) ([]byte, error) {
|
||||
return hc.amino.MarshalJSON(o)
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ func (hc *HybridCodec) MustMarshalJSON(o interface{}) []byte {
|
||||
return hc.amino.MustMarshalJSON(o)
|
||||
}
|
||||
|
||||
func (hc *HybridCodec) UnmarshalJSON(bz []byte, ptr interface{}) error { // nolint: stdmethods
|
||||
func (hc *HybridCodec) UnmarshalJSON(bz []byte, ptr interface{}) error {
|
||||
return hc.amino.UnmarshalJSON(bz, ptr)
|
||||
}
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ func (pc *ProtoCodec) MustUnmarshalBinaryLengthPrefixed(bz []byte, ptr ProtoMars
|
||||
}
|
||||
}
|
||||
|
||||
func (pc *ProtoCodec) MarshalJSON(o interface{}) ([]byte, error) { // nolint: stdmethods
|
||||
func (pc *ProtoCodec) MarshalJSON(o interface{}) ([]byte, error) {
|
||||
m, ok := o.(ProtoMarshaler)
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("cannot protobuf JSON encode unsupported type: %T", o)
|
||||
@@ -107,7 +107,7 @@ func (pc *ProtoCodec) MustMarshalJSON(o interface{}) []byte {
|
||||
return bz
|
||||
}
|
||||
|
||||
func (pc *ProtoCodec) UnmarshalJSON(bz []byte, ptr interface{}) error { // nolint: stdmethods
|
||||
func (pc *ProtoCodec) UnmarshalJSON(bz []byte, ptr interface{}) error {
|
||||
m, ok := ptr.(ProtoMarshaler)
|
||||
if !ok {
|
||||
return fmt.Errorf("cannot protobuf JSON decode unsupported type: %T", ptr)
|
||||
|
||||
Reference in New Issue
Block a user