Skip to content

Commit 19d7dce

Browse files
committed
remove an unnecessary ?
1 parent 9eb9176 commit 19d7dce

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_errors/src/emitter.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,8 +1389,7 @@ impl EmitterWriter {
13891389
let primary_span = msp.primary_span().unwrap_or_default();
13901390
let (Some(sm), false) = (self.sm.as_ref(), primary_span.is_dummy()) else {
13911391
// If we don't have span information, emit and exit
1392-
emit_to_destination(&buffer.render(), level, &mut self.dst, self.short_message)?;
1393-
return Ok(());
1392+
return emit_to_destination(&buffer.render(), level, &mut self.dst, self.short_message);
13941393
};
13951394
let primary_lo = sm.lookup_char_pos(primary_span.lo());
13961395
if let Ok(pos) =

0 commit comments

Comments
 (0)