diff --git a/src/modules/users/SetHostNameJob.cpp b/src/modules/users/SetHostNameJob.cpp index db220d042..1c70fe634 100644 --- a/src/modules/users/SetHostNameJob.cpp +++ b/src/modules/users/SetHostNameJob.cpp @@ -61,9 +61,8 @@ SetHostNameJob::prettyStatusMessage() const STATICTEST bool setFileHostname( const QString& hostname ) { - return !( CalamaresUtils::System::instance() - ->createTargetFile( QStringLiteral( "/etc/hostname" ), ( hostname + '\n' ).toUtf8() ) - .failed() ); + return CalamaresUtils::System::instance()->createTargetFile( QStringLiteral( "/etc/hostname" ), + ( hostname + '\n' ).toUtf8() ); } STATICTEST bool @@ -78,9 +77,8 @@ ff02::1 ip6-allnodes ff02::2 ip6-allrouters )"; - return !( CalamaresUtils::System::instance() - ->createTargetFile( QStringLiteral( "/etc/hosts" ), QString( etc_hosts ).arg( hostname ).toUtf8() ) - .failed() ); + return CalamaresUtils::System::instance()->createTargetFile( QStringLiteral( "/etc/hosts" ), + QString( etc_hosts ).arg( hostname ).toUtf8() ); } STATICTEST bool