commit | 6279dcff3ab3c1d9d2f4085f4306e9f82804d5a6 | [log] [tgz] |
---|---|---|
author | Faraaz Sareshwala <faraazs@gmail.com> | Tue Nov 28 09:42:26 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Nov 28 09:42:26 2023 +0000 |
tree | 17573f0da543854ad9a2824370ec45389da88f7d | |
parent | afd316169759dd64c89f17472df0cfae369e35c6 [diff] |
pw_bluetooth_sapphire: Remove now unnecessary use of std::optional Previously, we used std::optional<CommandPacket> in LowEnergyAdvertiser and its subclasses to indicate that a command packet build failed. Over time, these methods have evolved to use asserts and no longer return std::nullopt like they used to. We can now get rid of the std::optional use and the unnecessary checks afterward to ensure that the std::optional has a valid value in it. Bug: 311256496 Change-Id: If9f576a64afe0a3ac35814a530acb666c83c4536 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/182490 Commit-Queue: Faraaz Sareshwala <fsareshwala@google.com> Reviewed-by: Ben Lawson <benlawson@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.