Skip to content

Commit

Permalink
chore: perf
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Oct 15, 2024
1 parent 51a2958 commit 05ad718
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crates/mako/src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,12 +393,11 @@ impl PluginDriver {
path: &str,
context: &Arc<Context>,
) -> Result<Content> {
let mut content = content.clone();
for plugin in &self.plugins {
if let Some(transformed) = plugin.load_transform(&mut content, path, context)? {
content = transformed;
if let Some(transformed) = plugin.load_transform(content, path, context)? {
*content = transformed;

Check warning on line 398 in crates/mako/src/plugin.rs

View check run for this annotation

Codecov / codecov/patch

crates/mako/src/plugin.rs#L398

Added line #L398 was not covered by tests
}
}
Ok(content)
Ok(content.clone())
}
}

0 comments on commit 05ad718

Please sign in to comment.