mirror of
https://github.com/wownero/cyberwow.git
synced 2026-10-23 18:28:47 +02:00
remove the new keyword
This commit is contained in:
@@ -35,7 +35,7 @@ Stream<String> runBinary (String name, {Stream<String> input}) async* {
|
||||
|
||||
final appDocDir = await getApplicationDocumentsDirectory();
|
||||
final appDocPath = appDocDir.path;
|
||||
final binDir = new Directory(appDocDir.path + "/" + config.c.appPath);
|
||||
final binDir = Directory(appDocDir.path + "/" + config.c.appPath);
|
||||
|
||||
await binDir.create();
|
||||
|
||||
@@ -73,7 +73,7 @@ Stream<String> runBinary (String name, {Stream<String> input}) async* {
|
||||
}
|
||||
await for (final line in outputProcess.stdout.transform(utf8.decoder)) {
|
||||
log.finest('process output: ' + line);
|
||||
yield line.replaceAll(new RegExp(r'\033\[[0-9;]*m'), '');
|
||||
yield line.replaceAll(RegExp(r'\033\[[0-9;]*m'), '');
|
||||
}
|
||||
|
||||
if (config.isEmu) return;
|
||||
|
||||
@@ -22,7 +22,7 @@ along with CyberWOW. If not, see <https://www.gnu.org/licenses/>.
|
||||
import 'dart:convert';
|
||||
|
||||
String pretty(dynamic x) {
|
||||
final JsonEncoder encoder = new JsonEncoder.withIndent(' ');
|
||||
final JsonEncoder encoder = JsonEncoder.withIndent(' ');
|
||||
return encoder.convert(x);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import 'package:logging/logging.dart';
|
||||
|
||||
final Logger log = new Logger('Default');
|
||||
final Logger log = Logger('Default');
|
||||
|
||||
@@ -115,7 +115,7 @@ class LoadingState extends HookedState {
|
||||
Future<void> showBanner() async {
|
||||
var chars = [];
|
||||
banner.runes.forEach((int rune) {
|
||||
final c = new String.fromCharCode(rune);
|
||||
final c = String.fromCharCode(rune);
|
||||
chars.add(c);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user