Skip to content

Commit 721a2ed

Browse files
committed
lint fix
1 parent bdc74ce commit 721a2ed

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

crates/biome_js_analyze/src/lint/nursery/no_unnecessary_conditions.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,22 @@ declare_lint_rule! {
2323
///
2424
/// ### Invalid
2525
///
26-
/// ```ts,expect_diagnostic,ignore
26+
/// ```ts
2727
/// function head<T>(items: T[]) {
2828
/// if (items) { // This check is unnecessary
2929
/// return items[0].toUpperCase();
3030
/// }
3131
/// }
3232
/// ```
3333
///
34-
/// ```ts,expect_diagnostic,ignore
34+
/// ```ts
3535
/// function foo(arg: 'bar' | 'baz') {
3636
/// if (arg) { // This check is unnecessary
3737
/// }
3838
/// }
3939
/// ```
4040
///
41-
/// ```ts,expect_diagnostic,ignore
41+
/// ```ts
4242
/// function bar(arg: string) {
4343
/// return arg?.length; // ?. is unnecessary
4444
/// }

0 commit comments

Comments
 (0)