opt.: upgrade linter & fix lint issues

This commit is contained in:
lollipopkit
2023-12-06 11:09:05 +08:00
parent 143cb1e7c1
commit 8a3fd342c6
38 changed files with 92 additions and 94 deletions

View File

@@ -55,9 +55,9 @@ Future<void> isolateMessageHandler(
SendPort mainSendPort,
SendErrorFunction sendError,
) async {
switch (data.runtimeType) {
case SftpReq:
switch (data.type) {
switch (data) {
case SftpReq val:
switch (val.type) {
case SftpReqType.download:
await _download(data, mainSendPort, sendError);
break;