vcs: fix compiler warning

this 'if' clause does not guard

Change-Id: I91cdabf9b770f58cc59ca00df6574c757c2618b5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Nikita Baryshnikov
2016-05-12 22:04:38 +03:00
committed by Tobias Hunger
parent ccb7aa8185
commit 7c5836986f
2 changed files with 5 additions and 6 deletions

View File

@@ -1334,9 +1334,8 @@ void ClearCasePlugin::ccUpdate(const QString &workingDir, const QStringList &rel
args << QLatin1String("-noverwrite");
if (!relativePaths.isEmpty())
args.append(relativePaths);
const ClearCaseResponse response =
runCleartool(workingDir, args, m_settings.longTimeOutS(),
VcsCommand::ShowStdOut);
const ClearCaseResponse response =
runCleartool(workingDir, args, m_settings.longTimeOutS(), VcsCommand::ShowStdOut);
if (!response.error)
clearCaseControl()->emitRepositoryChanged(workingDir);
}