mirror of
https://github.com/gethomepage/homepage.git
synced 2026-02-08 00:40:52 +08:00
Chore: move to eslint (#6270)
This commit is contained in:
@@ -28,9 +28,7 @@ export default async function handler(req, res) {
|
||||
try {
|
||||
// maintain backwards compatibility with old ping where may be http://...
|
||||
hostname = new URL(pingHostOrURL).hostname;
|
||||
} catch (e) {
|
||||
// eslint-disable-line no-empty
|
||||
}
|
||||
} catch (e) {}
|
||||
|
||||
try {
|
||||
const response = await ping.probe(hostname);
|
||||
|
||||
Reference in New Issue
Block a user