Skip to content

Commit

Permalink
lint: combine identical if blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
chriamue authored and ctron committed Mar 4, 2025
1 parent c50020e commit d9df349
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/tools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -450,10 +450,9 @@ async fn install(app: Application, archive_file: File, target_directory: PathBuf
tokio::task::spawn_blocking(move || {
let mut archive = if app == Application::Sass && cfg!(target_os = "windows") {
Archive::new_zip(archive_file)?
} else if app == Application::TailwindCss {
Archive::new_none(archive_file)
} else if app == Application::TailwindCssExtra
&& (cfg!(target_os = "macos") || cfg!(target_os = "windows"))
} else if app == Application::TailwindCss
|| (app == Application::TailwindCssExtra
&& (cfg!(target_os = "macos") || cfg!(target_os = "windows")))
{
Archive::new_none(archive_file)
} else {
Expand Down

0 comments on commit d9df349

Please sign in to comment.