From e32df0035d9b38ac0de749c0bed53e1b7f153c39 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sat, 3 Jun 2023 01:39:51 +0200 Subject: [PATCH] Fixed warnings --- .../src/pages/tools/linux/InstallSoftware/InstallSoftware.jsx | 2 +- client/src/pages/tools/linux/RemoteSFTP/RemoteSFTP.jsx | 2 +- client/src/pages/tools/linux/RemoteSSH/RemoteSSH.jsx | 2 +- server/controller/shell.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/pages/tools/linux/InstallSoftware/InstallSoftware.jsx b/client/src/pages/tools/linux/InstallSoftware/InstallSoftware.jsx index 2253333..b145509 100644 --- a/client/src/pages/tools/linux/InstallSoftware/InstallSoftware.jsx +++ b/client/src/pages/tools/linux/InstallSoftware/InstallSoftware.jsx @@ -1,6 +1,6 @@ import InfoArea from "@/common/components/InfoArea"; import Button from "@/common/components/Button"; -import {faGear, faServer} from "@fortawesome/free-solid-svg-icons"; +import {faServer} from "@fortawesome/free-solid-svg-icons"; import {useContext, useState} from "react"; import Software from "./software.jsx"; import SoftwareGrid from "@/pages/tools/linux/InstallSoftware/components/SoftwareGrid"; diff --git a/client/src/pages/tools/linux/RemoteSFTP/RemoteSFTP.jsx b/client/src/pages/tools/linux/RemoteSFTP/RemoteSFTP.jsx index b8dea02..76fa618 100644 --- a/client/src/pages/tools/linux/RemoteSFTP/RemoteSFTP.jsx +++ b/client/src/pages/tools/linux/RemoteSFTP/RemoteSFTP.jsx @@ -1,6 +1,6 @@ import InfoArea from "@/common/components/InfoArea"; import Button from "@/common/components/Button"; -import {faGear, faServer} from "@fortawesome/free-solid-svg-icons"; +import {faServer} from "@fortawesome/free-solid-svg-icons"; import ErrorArea from "@/common/components/ErrorArea"; import "./styles.sass"; import ServerDialog from "@/pages/tools/linux/components/ServerDialog/index.js"; diff --git a/client/src/pages/tools/linux/RemoteSSH/RemoteSSH.jsx b/client/src/pages/tools/linux/RemoteSSH/RemoteSSH.jsx index fdb82d8..210c5fb 100644 --- a/client/src/pages/tools/linux/RemoteSSH/RemoteSSH.jsx +++ b/client/src/pages/tools/linux/RemoteSSH/RemoteSSH.jsx @@ -1,6 +1,6 @@ import InfoArea from "@/common/components/InfoArea"; import Button from "@/common/components/Button"; -import {faGear, faServer} from "@fortawesome/free-solid-svg-icons"; +import {faServer} from "@fortawesome/free-solid-svg-icons"; import ErrorArea from "@/common/components/ErrorArea"; import "./styles.sass"; import {useState} from "react"; diff --git a/server/controller/shell.js b/server/controller/shell.js index 166dcdf..053967a 100644 --- a/server/controller/shell.js +++ b/server/controller/shell.js @@ -34,7 +34,7 @@ module.exports.checkServer = async ({hostname, username = "root", password, priv }); }); - }).connect({host: hostname, port, username, password, privateKey, readyTimeout: 5000}).on("error", (err) => { + }).connect({host: hostname, port, username, password, privateKey, readyTimeout: 5000}).on("error", () => { reject("Error while connecting to server"); session.end(); });