Skip to content

Commit

Permalink
chore: apply automated lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Aug 20, 2023
1 parent 9cb9d11 commit c86ad62
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { relative, join } from "pathe";
import { colors } from "consola/utils";
import { ListenURL, ListenOptions } from "./types";


export function getNetworkInterfaces(v4Only = true): string[] {
const addrs = new Set<string>();
for (const details of Object.values(networkInterfaces())) {
Expand Down Expand Up @@ -42,9 +41,12 @@ export function formatURL(url: string) {

export function getSocketPath(ipcSocketName: string) {
if (platform() === "win32") {
return `\\\\?\\pipe\\${ipcSocketName || "listhen"}`
return `\\\\?\\pipe\\${ipcSocketName || "listhen"}`;
}
return join(tmpdir(), ipcSocketName ? `${ipcSocketName}.socket` : "listhen.socket")
return join(
tmpdir(),
ipcSocketName ? `${ipcSocketName}.socket` : "listhen.socket",
);
}

export const IPC_NOT_USED_NAME = "_____";
Expand Down

0 comments on commit c86ad62

Please sign in to comment.