Skip to content

Commit a14a2a4

Browse files
committed
refactor: cleanup dead code
1 parent a34d195 commit a14a2a4

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

src/bin/jlpkg.rs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,6 @@ enum PkgCommand {
263263
manifest: bool,
264264
},
265265

266-
/// Preview a registry package
267-
Preview {
268-
/// Package name
269-
package: String,
270-
},
271-
272266
/// Explains why a package is in the dependency graph
273267
#[command(name = "why")]
274268
Why {
@@ -431,12 +425,8 @@ fn main() -> Result<std::process::ExitCode> {
431425

432426
// Add default flags if not already specified
433427
for (flag, value) in defaults {
434-
// Check if this flag (or its underscore variant) is already specified
435-
let flag_underscore = flag.replace('-', "_");
436-
if !julia_flags
437-
.iter()
438-
.any(|f| f.starts_with(flag) || f.starts_with(&flag_underscore))
439-
{
428+
// Check if this flag is already specified
429+
if !julia_flags.iter().any(|f| f.starts_with(flag)) {
440430
new_args.push(format!("{}={}", flag, value));
441431
}
442432
}

0 commit comments

Comments
 (0)