fix: modernize-use-nodiscard clang-tidy warnings (32-x-y backport) (#44846)

fix: modernize-use-nodiscard clang-tidy warnings (#44808)
This commit is contained in:
Charles Kerr 2024-11-27 12:42:14 -06:00 committed by GitHub
parent d1639ccb79
commit 10e0ce0692
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 14 additions and 13 deletions

View file

@ -140,7 +140,7 @@ class BufferDataSource : public mojo::DataPipeProducer::DataSource {
private:
// mojo::DataPipeProducer::DataSource:
uint64_t GetLength() const override { return buffer_.size(); }
[[nodiscard]] uint64_t GetLength() const override { return buffer_.size(); }
ReadResult Read(uint64_t offset, base::span<char> buffer) override {
ReadResult result;
if (offset <= buffer_.size()) {