Skip to content

Commit

Permalink
removed force cast operator
Browse files Browse the repository at this point in the history
  • Loading branch information
TesteurManiak committed Dec 1, 2022
1 parent 723edec commit d2fd3b6
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions lib/src/command_runner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class CommandRunner {
_deleteTempFiles(workingDirectoryPath);
}

Logger.logInfo('You are good to go ! :)', lineBreak: true);
Logger.logInfo('You are good to go! :)', lineBreak: true);
}

/// Run the flutter create command in the [workDir] with the parameters
Expand Down Expand Up @@ -102,7 +102,7 @@ class CommandRunner {
'--branch',
gitRef,
],
templatePath!,
if (templatePath != null) templatePath,
'temp',
],
workingDirectory: workDir,
Expand All @@ -112,14 +112,23 @@ class CommandRunner {
if (io.Platform.isWindows) {
io.Process.runSync(
'powershell',
['cp', '-r', templatePath!, 'temp'],
[
'cp',
'-r',
if (templatePath != null) templatePath,
'temp',
],
workingDirectory: workDir,
runInShell: true,
);
} else {
io.Process.runSync(
'cp',
['-r', templatePath!, 'temp'],
[
'-r',
if (templatePath != null) templatePath,
'temp',
],
workingDirectory: workDir,
runInShell: true,
);
Expand Down

0 comments on commit d2fd3b6

Please sign in to comment.