Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 29, 2024
1 parent eb7f861 commit baeaf0c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/virtlyst.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,9 @@ void Virtlyst::updateConnections()
server->password = password;
server->type = type;


QStringList parts = hostname.split(":");
QString host = parts[0]; // The IP/FQDN part
int port = -1; // Default port value if no port is specified
QString host = parts[0]; // The IP/FQDN part
int port = -1; // Default port value if no port is specified

// Check if a port was provided
if (parts.size() > 1) {
Expand All @@ -286,7 +285,7 @@ void Virtlyst::updateConnections()
port = -1;
}
}

QUrl url;
switch (type) {
case ServerConn::ConnSocket:
Expand Down Expand Up @@ -315,7 +314,6 @@ void Virtlyst::updateConnections()
}
server->url = url;


server->conn = new Connection(url, name, server);
m_connections.insert(id, server);
}
Expand Down

0 comments on commit baeaf0c

Please sign in to comment.