Skip to content

Commit

Permalink
refactor: simplify the message
Browse files Browse the repository at this point in the history
  • Loading branch information
chansuke committed Jun 9, 2024
1 parent 23d6d23 commit 348c376
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl Rule for UseTrimStartEnd {
let member_name = state.member_name.text();
let replaced_member_name = state.replaced_member_name;
let diagnostic_message = markup! {
"Avoid using "{member_name}" and consider using "{replaced_member_name}" instead."
"Use "{member_name}" instead of "{replaced_member_name}"."
}
.to_owned();
let note_message = {
Expand Down Expand Up @@ -113,7 +113,7 @@ impl Rule for UseTrimStartEnd {
Some(JsRuleAction::new(
ActionCategory::QuickFix,
ctx.metadata().applicability(),
markup! { "Replace inconsistent string function "<Emphasis>{member_name}</Emphasis>" with "<Emphasis>{replaced_member_name}</Emphasis>"." }
markup! { "Replace "<Emphasis>{member_name}</Emphasis>" with "<Emphasis>{replaced_member_name}</Emphasis>"." }
.to_owned(),
mutation,
))
Expand Down

0 comments on commit 348c376

Please sign in to comment.