1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 10:48:13 +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<>
class ThrowCompletionOr<void> : public ThrowCompletionOr<Empty> {
class [[nodiscard]] ThrowCompletionOr<void> : public ThrowCompletionOr<Empty> {
public:
using ThrowCompletionOr<Empty>::ThrowCompletionOr;
};