formatting fix

This commit is contained in:
Lev Dragunov 2019-01-29 14:02:43 +03:00
parent 65acbae808
commit 475d8b4d84
2 changed files with 3 additions and 2 deletions

View File

@ -407,7 +407,8 @@ void Storage::PopulateStaticData(const SharedDataIndex &index)
auto timestamp_ref = make_timestamp_view(index, "/common/timestamp");
std::string ts;
extractor::files::readTimestamp(config.GetPath(".osrm.timestamp"), ts);
if (!ts.empty()) {
if (!ts.empty())
{
memcpy(const_cast<char *>(timestamp_ref.data()), ts.data(), ts.size());
}
}