mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-15 19:28:00 +01:00
Remove unreachable code
This commit is contained in:
@@ -71,11 +71,8 @@ impl cli::Session {
|
|||||||
|
|
||||||
status::info!("asciinema session started");
|
status::info!("asciinema session started");
|
||||||
|
|
||||||
let mut no_outputs = true;
|
|
||||||
|
|
||||||
if let Some(path) = self.output_file.as_ref() {
|
if let Some(path) = self.output_file.as_ref() {
|
||||||
status::info!("Recording to {}", path);
|
status::info!("Recording to {}", path);
|
||||||
no_outputs = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(listener) = &listener {
|
if let Some(listener) = &listener {
|
||||||
@@ -83,17 +80,10 @@ impl cli::Session {
|
|||||||
"Live streaming at http://{}",
|
"Live streaming at http://{}",
|
||||||
listener.local_addr().unwrap()
|
listener.local_addr().unwrap()
|
||||||
);
|
);
|
||||||
|
|
||||||
no_outputs = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(Relay { url: Some(url), .. }) = &relay {
|
if let Some(Relay { url: Some(url), .. }) = &relay {
|
||||||
status::info!("Live streaming at {}", url);
|
status::info!("Live streaming at {}", url);
|
||||||
no_outputs = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if no_outputs {
|
|
||||||
status::warning!("No outputs enabled, consider using -o, -l, or -r");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if command.is_none() {
|
if command.is_none() {
|
||||||
|
|||||||
Reference in New Issue
Block a user