Skip to content

Commit 0c8a12d

Browse files
committed
refactor: removed unreachable code
1 parent d2286c4 commit 0c8a12d

File tree

1 file changed

+1
-4
lines changed
  • gems/codetracer-ruby-recorder/ext/native_tracer/src

1 file changed

+1
-4
lines changed

gems/codetracer-ruby-recorder/ext/native_tracer/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -694,10 +694,7 @@ unsafe extern "C" fn initialize(self_val: VALUE, out_dir: VALUE, format: VALUE)
694694
"binaryv0" => runtime_tracing::TraceEventsFileFormat::BinaryV0,
695695
"binary" | "bin" => runtime_tracing::TraceEventsFileFormat::Binary,
696696
"json" => runtime_tracing::TraceEventsFileFormat::Json,
697-
_ => {
698-
rb_raise(rb_eIOError, b"Unknown format\0".as_ptr() as *const c_char);
699-
runtime_tracing::TraceEventsFileFormat::Json
700-
}
697+
_ => rb_raise(rb_eIOError, b"Unknown format\0".as_ptr() as *const c_char),
701698
}
702699
} else {
703700
runtime_tracing::TraceEventsFileFormat::Json

0 commit comments

Comments
 (0)