We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72ef200 commit b1def84Copy full SHA for b1def84
src/jobs/utils.rs
@@ -23,12 +23,12 @@ use super::job_queue::queue_update_job;
23
/// **Both the commit job and the publish job use this predicate** to decide which refs get a
24
/// `.flatpakref` file.
25
pub fn should_generate_flatpakref(ref_name: &str) -> bool {
26
- let unwanted_exts = [".Debug", ".Locale", ".Sources", ".Docs"];
+ const UNWANTED_EXTS: &[&str] = &[".Debug", ".Locale", ".Sources", ".Docs"];
27
let ref_id = ref_name.split('/').nth(1).unwrap_or("");
28
29
ref_name.starts_with("app/")
30
|| (ref_name.starts_with("runtime/")
31
- && !unwanted_exts.iter().any(|&ext| ref_id.ends_with(ext)))
+ && !UNWANTED_EXTS.iter().any(|&ext| ref_id.ends_with(ext)))
32
}
33
34
pub fn generate_flatpakref(
0 commit comments