refactor: Fixed a linting issue for Windows builds

This commit is contained in:
2025-10-16 12:44:50 -06:00
parent 6421a677eb
commit 947a7871c2
+1
View File
@@ -141,6 +141,7 @@ impl Functions {
.extension() .extension()
.and_then(OsStr::to_str) .and_then(OsStr::to_str)
.map(|s| s.to_lowercase()); .map(|s| s.to_lowercase());
#[cfg_attr(not(unix), expect(dead_code))]
let is_script = matches!(file_extension.as_deref(), Some("sh") | Some("py")); let is_script = matches!(file_extension.as_deref(), Some("sh") | Some("py"));
if file_path.exists() { if file_path.exists() {