Skip to content

Commit

Permalink
Small lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shleikes committed May 21, 2024
1 parent c5f9a72 commit eb714b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func IdFromRawMessage(rawID json.RawMessage) (jsonrpcId, error) {
// json.Unmarshal uses float64 for all numbers
return JSONRPCIntID(int(id)), nil
case nil:
return nil, nil
return jsonrpcId(nil), nil
default:
typ := reflect.TypeOf(id)
return nil, utils.LavaFormatError("failed to unmarshal id not a string or float", err, []utils.Attribute{{Key: "id", Value: string(rawID)}, {Key: "id type", Value: typ}}...)
Expand Down

0 comments on commit eb714b7

Please sign in to comment.