mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: modernize-use-nodiscard clang-tidy warnings (#44808)
This commit is contained in:
@@ -150,7 +150,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()) {
|
||||
|
||||
Reference in New Issue
Block a user