Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Commit

Permalink
Add a specific type to the map method in _getArguments (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-siva authored and goderbauer committed Mar 7, 2018
1 parent 5ad90d0 commit c1952a5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### 2.0.8

* Fixed method getArguments to qualify the map method with the specific
String type

### 2.0.7

* Remove `set exitCode` instances
Expand Down
7 changes: 6 additions & 1 deletion lib/src/interface/local_process_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,9 @@ String _getExecutable(
}

List<String> _getArguments(List<dynamic> command) =>
command.skip(1).map((dynamic element) => element.toString()).toList();
// Adding a specific type to map in order to workaround dart issue
// https://github.com/dart-lang/sdk/issues/32414
command
.skip(1)
.map<String>((dynamic element) => element.toString())
.toList();
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: process
version: 2.0.7
version: 2.0.8
authors:
- Todd Volkert <[email protected]>
- Michael Goderbauer <[email protected]>
Expand Down

0 comments on commit c1952a5

Please sign in to comment.