mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-03-14 07:27:17 +08:00
Lint Code [skip actions]
This commit is contained in:
parent
25b126f468
commit
9f3d859817
@ -136,9 +136,9 @@ export type CommandResponse = {
|
||||
};
|
||||
|
||||
export type WindowDetails = {
|
||||
address: string,
|
||||
port: number,
|
||||
disable: boolean
|
||||
address: string;
|
||||
port: number;
|
||||
disable: boolean;
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -174,11 +174,8 @@ export function getWindowDetails(): WindowDetails {
|
||||
const { address, port, disable } = details;
|
||||
|
||||
return {
|
||||
address: address == "{{DETAILS_ADDRESS}}" ?
|
||||
"127.0.0.1" : address,
|
||||
port: port == "{{DETAILS_PORT}}" ?
|
||||
443 : parseInt(port),
|
||||
disable: disable == "{{DETAILS_DISABLE}}" ?
|
||||
false : disable == "true"
|
||||
address: address == "{{DETAILS_ADDRESS}}" ? "127.0.0.1" : address,
|
||||
port: port == "{{DETAILS_PORT}}" ? 443 : parseInt(port),
|
||||
disable: disable == "{{DETAILS_DISABLE}}" ? false : disable == "true"
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user