Skip to content

Commit

Permalink
Fix cpplint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
azeey committed Jul 19, 2024
1 parent 65d493a commit 7157514
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
14 changes: 9 additions & 5 deletions src/FuelClient_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,8 @@ TEST_F(FuelClientTest, CachedModel)

// Cached model (tip)
{
common::URI url{"http://localhost:8007/1.0/alice/models/My Model/tip", true};
common::URI url{"http://localhost:8007/1.0/alice/models/My Model/tip",
true};
std::string path;
auto result = client.CachedModel(url, path);
EXPECT_TRUE(result);
Expand All @@ -744,7 +745,8 @@ TEST_F(FuelClientTest, CachedModel)
// Cached model file (tip)
{
common::URI url{
"http://localhost:8007/1.0/alice/models/My Model/tip/files/model.sdf", true};
"http://localhost:8007/1.0/alice/models/My Model/tip/files/model.sdf",
true};
std::string path;
auto result = client.CachedModelFile(url, path);
EXPECT_TRUE(result);
Expand Down Expand Up @@ -776,7 +778,8 @@ TEST_F(FuelClientTest, CachedModel)

// Non-cached model (when looking for file)
{
common::URI url{"http://localhost:8007/1.0/alice/models/Banana/model.sdf", true};
common::URI url{"http://localhost:8007/1.0/alice/models/Banana/model.sdf",
true};
std::string path;
auto result = client.CachedModelFile(url, path);
EXPECT_FALSE(result);
Expand Down Expand Up @@ -1186,7 +1189,8 @@ TEST_F(FuelClientTest, GZ_UTILS_TEST_DISABLED_ON_WIN32(CachedWorld))

// Cached world (tip)
{
common::URI url{"http://localhost:8007/1.0/banana/worlds/My World/tip", true};
common::URI url{"http://localhost:8007/1.0/banana/worlds/My World/tip",
true};
std::string path;
auto result = client.CachedWorld(url, path);
EXPECT_TRUE(result);
Expand Down Expand Up @@ -1516,7 +1520,7 @@ TEST_F(FuelClientTest, GZ_UTILS_TEST_DISABLED_ON_WIN32(PatchModelFail))

// Bad model.config
result = client.PatchModel(modelId, headers,
common::joinPaths(common::cwd(), "test_cache",
common::joinPaths(common::cwd(), "test_cache",
sanitizeAuthority("localhost:8007"),
"alice", "models", "My Model", "3"));
EXPECT_EQ(ResultType::UPLOAD_ERROR, result.Type());
Expand Down
4 changes: 2 additions & 2 deletions src/LocalCache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ Model LocalCache::MatchingModel(const ModelIdentifier &_id)
this->dataPtr->config->CacheLocation(), uriToPath(_id.Server().Url()));

auto srvModels = this->dataPtr->ModelsInServer(path);
for (auto &model: srvModels)
for (auto &model : srvModels)
{
model.dataPtr->id.SetServer(_id.Server());
auto id = model.Identification();
Expand Down Expand Up @@ -316,7 +316,7 @@ bool LocalCache::MatchingWorld(WorldIdentifier &_id) const
this->dataPtr->config->CacheLocation(), uriToPath(_id.Server().Url()));

auto srvWorlds = this->dataPtr->WorldsInServer(path);
for (auto id: srvWorlds)
for (auto id : srvWorlds)
{
id.SetServer(_id.Server());
if (_id == id)
Expand Down

0 comments on commit 7157514

Please sign in to comment.