Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shulaoda committed Oct 14, 2024
1 parent fba1884 commit 2a96897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oxc_minifier/src/node_util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ pub trait NodeUtil<'a> {
}

/// Retrieve the literal value of a string, such as `abc` or "abc".
fn get_string_literal<'a>(&self, expr: &'a Expression) -> Option<Cow<'a, str>> {
fn get_string_literal(&self, expr: &Expression<'a>) -> Option<Cow<'a, str>> {
match expr {
Expression::StringLiteral(lit) => Some(Cow::Borrowed(lit.value.as_str())),
Expression::TemplateLiteral(_) => Some(self.get_string_value(expr)?),
Expand Down

0 comments on commit 2a96897

Please sign in to comment.