Skip to content

Commit

Permalink
restore int => double promotion code
Browse files Browse the repository at this point in the history
  • Loading branch information
devoncarew committed Oct 7, 2023
1 parent 1167d44 commit 0db74b2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 2 additions & 0 deletions dist/main.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/sig.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 6 additions & 7 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@ void main(List<String> args) async {
if (sdk.isEmpty) {
sdk = 'stable';
}
// todo: temp temp - testing
// // Work around an issue where a `3.0` in a workflow file reaches us as a `3`
// // here.
// if (int.tryParse(sdk) != null && !sdk.contains('.')) {
// // Convert a '3' to a '3.0'.
// sdk = '$sdk.0';
// }
// A `3.0` in a workflow file reaches us as a `3` here; promote any int value
// back to a double.
if (int.tryParse(sdk) != null && !sdk.contains('.')) {
// Convert a '3' to a '3.0'.
sdk = '$sdk.0';
}

// flavor
var flavor = core.getInput('flavor');
Expand Down

0 comments on commit 0db74b2

Please sign in to comment.