Fix improper promotion of bool on return

This commit is contained in:
Miguel Portilla
2020-10-13 13:14:54 -04:00
committed by manojsdoshi
parent 03c809371a
commit 6968da153c

View File

@@ -265,7 +265,7 @@ DatabaseShardImp::prepareLedger(std::uint32_t validLedgerSeq)
}();
if (!pathDesignation)
return false;
return boost::none;
auto const needsHistoricalPath =
*pathDesignation == PathDesignation::historical;