Skip to content

Commit 8b0c2c3

Browse files
author
Vladislav Kalugin
committed
Fix
1 parent 4718153 commit 8b0c2c3

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

server/src/Synchronizer.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,9 @@ bool Synchronizer::isProbablyOutdatedStubs(const fs::path &srcFilePath) const {
6464
} catch (...) {
6565
return true;
6666
}
67-
if (!fs::exists(srcFilePath)){
67+
if (!fs::exists(srcFilePath)) {
6868
srcTimestamp = time(NULL);
69-
}
70-
else {
69+
} else {
7170
srcTimestamp = Synchronizer::getFileOutdatedTime(srcFilePath);
7271
}
7372
return stubTimestamp <= srcTimestamp;
@@ -80,10 +79,9 @@ bool Synchronizer::isProbablyOutdatedWrappers(const fs::path &srcFilePath) const
8079
}
8180
long long wrapperTimestamp, srcTimestamp;
8281
wrapperTimestamp = Synchronizer::getFileOutdatedTime(wrapperFilePath);
83-
if (!fs::exists(srcFilePath)){
82+
if (!fs::exists(srcFilePath)) {
8483
srcTimestamp = time(NULL);
85-
}
86-
else {
84+
} else {
8785
srcTimestamp = Synchronizer::getFileOutdatedTime(srcFilePath);
8886
}
8987
return wrapperTimestamp <= srcTimestamp;

server/test/framework/BaseTest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class BaseTest : public testing::Test {
2323

2424
CompilerName compilerName = CompilerName::CLANG;
2525
std::string buildDirRelativePath;
26-
std::string clientProjectPath;
26+
std::string clientProjectPath = "";
2727
fs::path buildPath;
2828
std::vector<fs::path> srcPaths;
2929

0 commit comments

Comments
 (0)