refactor: code cleanup

This commit is contained in:
Simon Chan 2024-06-02 01:55:26 +08:00
parent c440e83828
commit 721b6c0da6
No known key found for this signature in database
GPG key ID: A8B69F750B9BCEDD
68 changed files with 1161 additions and 1036 deletions

View file

@ -37,11 +37,11 @@
"@yume-chan/struct": "workspace:^0.0.23"
},
"devDependencies": {
"@types/node": "^20.12.12",
"@types/node": "^20.13.0",
"@yume-chan/eslint-config": "workspace:^1.0.0",
"@yume-chan/tsconfig": "workspace:^1.0.0",
"jest": "^30.0.0-alpha.4",
"prettier": "^3.2.5",
"prettier": "^3.3.0",
"typescript": "^5.4.5"
}
}

View file

@ -120,7 +120,7 @@ export class AdbServerNodeTcpConnector
} else if (url.protocol === "unix:") {
server.listen(url.pathname);
} else {
throw new Error(`Unsupported protocol ${url.protocol}`);
throw new TypeError(`Unsupported protocol ${url.protocol}`);
}
} else {
server.listen();