mirror of
https://github.com/casey/just.git
synced 2024-11-22 10:26:26 +03:00
fix
This commit is contained in:
parent
0716e62761
commit
aca47c7229
@ -389,16 +389,13 @@ impl<'src, D> Recipe<'src, D> {
|
|||||||
})?;
|
})?;
|
||||||
let mut path = tempdir.path().to_path_buf();
|
let mut path = tempdir.path().to_path_buf();
|
||||||
|
|
||||||
let extension = self
|
let extension = self.attributes.iter().find_map(|attribute| {
|
||||||
.attributes
|
if let Attribute::Extension(extension) = attribute {
|
||||||
.get(AttributeDiscriminant::Extension)
|
Some(extension.cooked.as_str())
|
||||||
.and_then(|attribute| {
|
} else {
|
||||||
if let Attribute::Extension(extension) = attribute {
|
None
|
||||||
Some(extension.cooked.as_str())
|
}
|
||||||
} else {
|
});
|
||||||
None
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
path.push(executor.script_filename(self.name(), extension));
|
path.push(executor.script_filename(self.name(), extension));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user