Skip to content

Commit 825d40c

Browse files
committed
feat(linter): fix casing in unicorn/no-useless-promise-resolve-reject (#11528)
1 parent 2faee3d commit 825d40c

File tree

2 files changed

+48
-48
lines changed

2 files changed

+48
-48
lines changed

crates/oxc_linter/src/rules/unicorn/no_useless_promise_resolve_reject.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use crate::{
1616

1717
fn resolve(span: Span, preferred: &str) -> OxcDiagnostic {
1818
OxcDiagnostic::warn(format!("Prefer `{preferred} value` over `{preferred} Promise.resolve(value)`."))
19-
.with_help("Wrapping the return value in `Promise.Resolve` is needlessly verbose. All return values in async functions are already wrapped in a `Promise`.")
19+
.with_help("Wrapping the return value in `Promise.resolve` is needlessly verbose. All return values in async functions are already wrapped in a `Promise`.")
2020
.with_label(span)
2121
}
2222

0 commit comments

Comments
 (0)