Skip to content

Commit

Permalink
Swap of if-else condition that takes into account the default value o…
Browse files Browse the repository at this point in the history
…f buildMode
  • Loading branch information
Lucian Suhov committed Sep 15, 2020
1 parent 0d542e8 commit 30bc6a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/flutter/flutter_run_process_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ class FlutterRunProcessHandler extends ProcessHandler {
Future<void> run() async {
final arguments = ['run', '--target=$_appTarget'];

if (_buildMode == BuildMode.Profile) {
arguments.add('--profile');
} else if (_buildMode == BuildMode.Debug) {
if (_buildMode == BuildMode.Debug) {
arguments.add('--debug');
} else if (_buildMode == BuildMode.Profile) {
arguments.add('--profile');
}

if (_buildApp == false) {
Expand Down

0 comments on commit 30bc6a7

Please sign in to comment.