Skip to content

Commit a5c48c4

Browse files
committed
fix suggestion_help
1 parent 0ade0b0 commit a5c48c4

File tree

1 file changed

+2
-5
lines changed
  • cpp-linter-lib/src/clang_tools

1 file changed

+2
-5
lines changed

cpp-linter-lib/src/clang_tools/mod.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -417,16 +417,13 @@ pub trait MakeSuggestions {
417417
.as_str(),
418418
)
419419
} else {
420-
suggestion = format!(
421-
"{}\n```suggestion\n{suggestion}```",
422-
suggestion_help.unwrap_or_default()
423-
);
420+
suggestion = format!("```suggestion\n{suggestion}```",);
424421
}
425422
}
426423
let comment = Suggestion {
427424
line_start: start_line,
428425
line_end: end_line,
429-
suggestion,
426+
suggestion: format!("{}\n{suggestion}", suggestion_help.unwrap_or_default()),
430427
path: file_name.clone(),
431428
};
432429
if !review_comments.is_comment_in_suggestions(&comment) {

0 commit comments

Comments
 (0)