refactor: Remove uneeded unwrap (#482)
parent
9f6427c94f
commit
c08744603b
|
@ -504,7 +504,7 @@ pub fn make_read_window_aggregate(
|
|||
if aggregates.len() != 1 {
|
||||
return AggregateNotSingleton { aggregates }.fail();
|
||||
}
|
||||
let agg = convert_aggregate(Some(aggregates.into_iter().next().unwrap()))?;
|
||||
let agg = convert_aggregate(aggregates.into_iter().next())?;
|
||||
|
||||
// Translation from these parameters to window bound
|
||||
// is defined in the Go code:
|
||||
|
|
Loading…
Reference in New Issue