Skip to content

Commit

Permalink
Fix test fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
szmyd committed Dec 19, 2023
1 parent ada6732 commit 43743ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/tests/fixture_app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ FixtureApp::FixtureApp() {
}

homeobject::peer_id_t FixtureApp::discover_svcid(std::optional< homeobject::peer_id_t > const& p) const {
auto const& new_id = p.value();
return new_id.is_nil() ? boost::uuids::random_generator()() : new_id;
return p.has_value() ? p.value() : boost::uuids::random_generator()();
}

void TestFixture::SetUp() {
Expand Down

0 comments on commit 43743ac

Please sign in to comment.