Skip to content

Commit 6f503a3

Browse files
committed
simplified method
1 parent eb4a97b commit 6f503a3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

bridge/call.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,7 @@ func (m instance) armorEncode(payload []byte) []byte {
229229
request := model.GetRootAsArmorEncodeRequest(payload, 0)
230230

231231
output, err := m.instance.ArmorEncode(request.PacketBytes())
232-
if err != nil {
233-
return m._stringResponse(response, output, err)
234-
}
235-
return m._stringResponse(response, output, nil)
232+
return m._stringResponse(response, output, err)
236233
}
237234

238235
func (m instance) getPublicKeyMetadata(payload []byte) []byte {

0 commit comments

Comments
 (0)