Commit 7c8815f5 authored by Kurt Hindenburg's avatar Kurt Hindenburg

simplify if()s for readability

parent 64962ef2
......@@ -1078,10 +1078,7 @@ QString SSHProcessInfo::format(const QString& input) const
bool isIpAddress = false;
struct in_addr address;
if (inet_aton(_host.toLocal8Bit().constData(), &address) != 0)
isIpAddress = true;
isIpAddress = false;
isIpAddress = inet_aton(_host.toLocal8Bit().constData(), &address) != 0;
// search for and replace known markers
output.replace(QLatin1String("%u"), _user);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment