Skip to content

Commit

Permalink
fix: solve lint suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
tilucasoli committed Jun 17, 2024
1 parent 6f36514 commit a3aa143
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/melos/lib/src/commands/exec.dart
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ mixin _ExecMixin on _Melos {
final dependenciesResults = await Future.wait(
package.allDependenciesInWorkspace.values
.map((package) => packageResults[package.name]?.future)
.whereNotNull(),
.nonNulls,
);

final dependencyFailed = dependenciesResults.any(
Expand Down
2 changes: 1 addition & 1 deletion packages/melos/lib/src/workspace_configs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ class MelosWorkspaceConfig {
),
assertValue: (key, value) => assertListIsA<String>(
key: key!,
map: yaml['categories'] as Map<Object?, Object?>,
map: (yaml['categories'] ?? {}) as Map<Object?, Object?>,
isRequired: false,
assertItemIsA: (index, value) => assertIsA<String>(
value: value,
Expand Down

0 comments on commit a3aa143

Please sign in to comment.