1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:27:45 +00:00

LibJS: Add [[nodiscard]] to ThrowCompletionOr<void>

This commit is contained in:
Luke Wilde 2023-02-27 22:43:42 +00:00 committed by Linus Groh
parent 8f4bec2b4a
commit fc538bc00b

View file

@ -344,7 +344,7 @@ private:
}; };
template<> template<>
class ThrowCompletionOr<void> : public ThrowCompletionOr<Empty> { class [[nodiscard]] ThrowCompletionOr<void> : public ThrowCompletionOr<Empty> {
public: public:
using ThrowCompletionOr<Empty>::ThrowCompletionOr; using ThrowCompletionOr<Empty>::ThrowCompletionOr;
}; };