Skip to content

Commit 80792fc

Browse files
committed
Tidy up changes in bin/ directory
1 parent 49de08a commit 80792fc

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

coinlib/bin/build_windows.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import 'dart:io';
2-
32
import 'util.dart';
43

54
/// Follows bitcoin-core/secp256k1's "Building on Windows" instructions.
65
///
76
/// Runnable in "Developer Command Prompt for VS 2022".
87
98
void main() async {
9+
1010
// Make temporary directory.
1111
final workDir = Directory.current.path;
1212
final tmpDir = createTmpDir();
@@ -60,7 +60,7 @@ void main() async {
6060
"${Platform.pathSeparator}libsecp256k1-2.dll",
6161
);
6262

63-
print("FIle exists: ${dll.existsSync()}");
63+
print("File exists: ${dll.existsSync()}");
6464

6565
dll.copySync(
6666
"$workDir"
@@ -69,4 +69,5 @@ void main() async {
6969
);
7070

7171
print("Output libsecp256k1.dll successfully");
72+
7273
}

coinlib/bin/util.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ Future<bool> cmdAvailable(String cmd) async {
1414
Future<int> execWithStdio(
1515
String executable,
1616
List<String> arguments, {
17-
String? workingDir,
18-
String? stdin,
19-
}) async {
17+
String? workingDir,
18+
String? stdin,
19+
}
20+
) async {
2021
final process = await Process.start(
2122
executable,
2223
arguments,
@@ -44,7 +45,6 @@ Future<int> execWithStdioWin(String command, List<String> arguments) async {
4445
print('[stderr]: $data');
4546
});
4647

47-
// Wait for the process to complete
4848
return await process.exitCode;
4949
}
5050

0 commit comments

Comments
 (0)