Skip to content

Commit 4db5f57

Browse files
committed
Avoid unwrap in parse_flush
1 parent e0b8b94 commit 4db5f57

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/parser/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ impl<'a> Parser<'a> {
10091009
FlushType::OptimizerCosts
10101010
} else if self.parse_keywords(&[Keyword::RELAY, Keyword::LOGS]) {
10111011
if self.parse_keywords(&[Keyword::FOR, Keyword::CHANNEL]) {
1012-
channel = Some(self.parse_object_name(false).unwrap().to_string());
1012+
channel = Some(self.parse_object_name(false)?.to_string());
10131013
}
10141014
FlushType::RelayLogs
10151015
} else if self.parse_keywords(&[Keyword::SLOW, Keyword::LOGS]) {

0 commit comments

Comments
 (0)