refactor: Remove uneeded unwrap (#482)

pull/24376/head
Andrew Lamb 2020-11-25 06:44:15 -05:00 committed by GitHub
parent 9f6427c94f
commit c08744603b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: