Skip to content

Commit

Permalink
more clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
phlptp committed Dec 28, 2024
1 parent 98b51ce commit cf0c30a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/helics/webserver/webServerWebSocketTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,11 @@ class webTest: public ::testing::Test {

static std::shared_ptr<helics::Core> addCore(helics::CoreType ctype, const std::string& init)
{
auto cr = helics::CoreFactory::create(ctype, init);
if (cr) {
cores.push_back(cr);
auto core = helics::CoreFactory::create(ctype, init);
if (core) {
cores.push_back(core);
}
return cr;
return core;
}
static void clearBrokers()
{
Expand Down Expand Up @@ -261,8 +261,8 @@ TEST_F(webTest, singleNonJson)

TEST_F(webTest, core)
{
auto cr = addCore(helics::CoreType::TEST, "--name=cr1 -f2");
EXPECT_TRUE(cr->connect());
auto core = addCore(helics::CoreType::TEST, "--name=cr1 -f2");
EXPECT_TRUE(core->connect());

nlohmann::json query;
query["command"] = "query";
Expand Down

0 comments on commit cf0c30a

Please sign in to comment.