Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladislav Kalugin committed Feb 13, 2023
1 parent 4718153 commit 8b0c2c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions server/src/Synchronizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@ bool Synchronizer::isProbablyOutdatedStubs(const fs::path &srcFilePath) const {
} catch (...) {
return true;
}
if (!fs::exists(srcFilePath)){
if (!fs::exists(srcFilePath)) {
srcTimestamp = time(NULL);
}
else {
} else {
srcTimestamp = Synchronizer::getFileOutdatedTime(srcFilePath);
}
return stubTimestamp <= srcTimestamp;
Expand All @@ -80,10 +79,9 @@ bool Synchronizer::isProbablyOutdatedWrappers(const fs::path &srcFilePath) const
}
long long wrapperTimestamp, srcTimestamp;
wrapperTimestamp = Synchronizer::getFileOutdatedTime(wrapperFilePath);
if (!fs::exists(srcFilePath)){
if (!fs::exists(srcFilePath)) {
srcTimestamp = time(NULL);
}
else {
} else {
srcTimestamp = Synchronizer::getFileOutdatedTime(srcFilePath);
}
return wrapperTimestamp <= srcTimestamp;
Expand Down
2 changes: 1 addition & 1 deletion server/test/framework/BaseTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class BaseTest : public testing::Test {

CompilerName compilerName = CompilerName::CLANG;
std::string buildDirRelativePath;
std::string clientProjectPath;
std::string clientProjectPath = "";
fs::path buildPath;
std::vector<fs::path> srcPaths;

Expand Down

0 comments on commit 8b0c2c3

Please sign in to comment.