Long function statements

Long function statements

This works:

exchange_rate_map = exchange_rate_record.Rates.toMap();
return exchange_rate_map.get(input.Currency_Code).toDecimal();

This saves OK but fails at runtime:

return  exchange_rate_record.Rates.toMap() .get(input.Currency_Code).toDecimal();

Any ideas?