Skip to content

Commit

Permalink
[daemon] Get rid of superfluous structured binding
Browse files Browse the repository at this point in the history
  • Loading branch information
ricab committed Oct 30, 2023
1 parent 6863937 commit c0ad644
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/daemon/daemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1732,12 +1732,11 @@ try // clang-format on

const auto& it = instance_snapshots_map.find(name);
const auto& snapshot_pick = it == instance_snapshots_map.end() ? SnapshotPick{{}, true} : it->second;
const auto& [pick, all_or_none] = snapshot_pick;

try
{
process_snapshot_pick(vm, snapshot_pick);
if (all_or_none)
if (snapshot_pick.all_or_none)
{
if (snapshots_only)
for (const auto& snapshot : vm.view_snapshots())
Expand Down

0 comments on commit c0ad644

Please sign in to comment.