[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2025-04-25 08:17:18 +00:00 committed by GitHub
parent d4c6e5b048
commit 79d55d8d34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 111 additions and 113 deletions

View File

@ -133,8 +133,6 @@ export const UserNav = () => {
Servers
</DropdownMenuItem>
)}
</>
)}
</DropdownMenuGroup>

View File

@ -34,7 +34,7 @@ export const slugify = (text: string | undefined) => {
export const serverSetup = async (
serverId: string,
onData?: (data: any) => void
onData?: (data: any) => void,
) => {
const server = await findServerById(serverId);
const { LOGS_PATH } = paths();
@ -181,7 +181,7 @@ ${installRailpack()}
const installRequirements = async (
serverId: string,
onData?: (data: any) => void
onData?: (data: any) => void,
) => {
const client = new Client();
const server = await findServerById(serverId);
@ -217,12 +217,12 @@ const installRequirements = async (
client.end();
if (err.level === "client-authentication") {
onData?.(
`Authentication failed: Invalid SSH private key. ❌ Error: ${err.message} ${err.level}`
`Authentication failed: Invalid SSH private key. ❌ Error: ${err.message} ${err.level}`,
);
reject(
new Error(
`Authentication failed: Invalid SSH private key. ❌ Error: ${err.message} ${err.level}`
)
`Authentication failed: Invalid SSH private key. ❌ Error: ${err.message} ${err.level}`,
),
);
} else {
onData?.(`SSH connection error: ${err.message} ${err.level}`);