Skip to content

Commit

Permalink
refactor: Remove unnecessary parenthesis to get analyzer green (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
spydon committed Nov 21, 2023
1 parent 5d49c4a commit d368b43
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 @@ -35,7 +35,7 @@ mixin _ExecMixin on _Melos {
final environment = {
...currentPlatform.environment,
'MELOS_PACKAGE_NAME': package.name,
'MELOS_PACKAGE_VERSION': (package.version).toString(),
'MELOS_PACKAGE_VERSION': package.version.toString(),
'MELOS_PACKAGE_PATH': package.path,
'MELOS_ROOT_PATH': workspace.path,
if (workspace.sdkPath != null) envKeyMelosSdkPath: workspace.sdkPath!,
Expand Down
2 changes: 1 addition & 1 deletion packages/melos/lib/src/commands/list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ mixin _ListMixin on _Melos {
.map(
(package) => [
package.name,
AnsiStyles.green((package.version).toString()),
AnsiStyles.green(package.version.toString()),
AnsiStyles.gray(printablePath(package.pathRelativeToWorkspace)),
if (package.isPrivate) AnsiStyles.red('PRIVATE'),
],
Expand Down

0 comments on commit d368b43

Please sign in to comment.