Replace code with constants
All checks were successful
Rust Build / Check (pull_request) Successful in 49s
Rust Build / Rustfmt (pull_request) Successful in 51s
Rust Build / Test Suite (pull_request) Successful in 52s
Rust Build / build (pull_request) Successful in 48s
Rust Build / Clippy (pull_request) Successful in 42s
All checks were successful
Rust Build / Check (pull_request) Successful in 49s
Rust Build / Rustfmt (pull_request) Successful in 51s
Rust Build / Test Suite (pull_request) Successful in 52s
Rust Build / build (pull_request) Successful in 48s
Rust Build / Clippy (pull_request) Successful in 42s
This commit is contained in:
@@ -433,9 +433,11 @@ pub async fn generate_coverart_queue_dir_and_filename(file_type: &str) -> (Strin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
filename += if file_type == "jpeg" || file_type == "jpg" {
|
filename += if file_type == icarus_meta::detection::coverart::constants::JPEG_TYPE
|
||||||
|
|| file_type == icarus_meta::detection::coverart::constants::JPG_TYPE
|
||||||
|
{
|
||||||
".jpeg"
|
".jpeg"
|
||||||
} else if file_type == "png" {
|
} else if file_type == icarus_meta::detection::coverart::constants::PNG_TYPE {
|
||||||
".png"
|
".png"
|
||||||
} else {
|
} else {
|
||||||
""
|
""
|
||||||
|
Reference in New Issue
Block a user