Skip to content

Commit

Permalink
Remove unnecessary if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
bytedream committed Jul 26, 2023
1 parent 9dcbd6e commit 53e6033
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/media/streaming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ impl Stream {
}
} else if let Some(raw_streams) = self.variants.get(&Locale::Custom("".into())) {
raw_streams.adaptive_dash.as_ref().unwrap().url.clone()
} else if let Some(raw_streams) = self.variants.get(&Locale::Custom(":".into())) {
raw_streams.adaptive_dash.as_ref().unwrap().url.clone()
} else {
return Err(CrunchyrollError::Internal(
"could not find supported stream".into(),
Expand Down

0 comments on commit 53e6033

Please sign in to comment.