Skip to content

Commit

Permalink
Merge pull request #186 from eclipse-thingweb/fix-deprecation
Browse files Browse the repository at this point in the history
fix: resolve deprecation warning regarding whereNotNull
  • Loading branch information
JKRhb authored Oct 23, 2024
2 parents 26878dd + 6cbbd6a commit aa26ef6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/src/core/definitions/security/combo_security_scheme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
//
// SPDX-License-Identifier: BSD-3-Clause

import "package:collection/collection.dart";
import "package:curie/curie.dart";

import "../extensions/json_parser.dart";
Expand Down Expand Up @@ -51,7 +50,7 @@ final class ComboSecurityScheme extends SecurityScheme {
);

final count =
[oneOf, allOf].whereNotNull().fold(0, (previous, _) => previous + 1);
[oneOf, allOf].nonNulls.fold(0, (previous, _) => previous + 1);

if (count != 1) {
throw FormatException(
Expand Down

0 comments on commit aa26ef6

Please sign in to comment.