opt import

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-21 12:12:34 +08:00
parent 57bd7de605
commit 5795122510
95 changed files with 142 additions and 176 deletions

View File

@@ -1,5 +1,5 @@
import 'dart:convert';
import 'dart:io';
import 'dart:convert' show jsonEncode;
import 'dart:io' show RandomAccessFile;
import 'package:PiliPlus/services/logger.dart' show LoggerUtils;
import 'package:catcher_2/model/platform_type.dart';
@@ -16,7 +16,7 @@ class JsonFileHandler extends ReportHandler {
final bool handleWhenRejected;
static Future<RandomAccessFile> _future = LoggerUtils.getLogsPath()
.then((file) => file.open(mode: FileMode.writeOnlyAppend))
.then((file) => file.open(mode: .writeOnlyAppend))
.then((raf) => raf.writeFrom(const []))
.then(_flush);