Skip to content

Commit

Permalink
chore: remove meaning less changes
Browse files Browse the repository at this point in the history
  • Loading branch information
xusd320 committed Feb 6, 2025
1 parent c4e1ff9 commit 4a0eabb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions crates/mako/src/generate/chunk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,7 @@ impl Chunk {
}

pub fn filename(&self) -> String {
let name = self.name();
if name.ends_with(".js") {
name
} else {
format!("{}.js", self.name())
}
format!("{}.js", self.name())
}

pub fn add_module(&mut self, module_id: ModuleId) {
Expand Down

0 comments on commit 4a0eabb

Please sign in to comment.