1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:18:12 +00:00

LibJS: Add missing (void) to handle [[nodiscard]] TRY() result

This commit is contained in:
Linus Groh 2021-11-11 00:03:07 +00:00
parent fdffdc43fa
commit 4eaa95769d

View file

@ -119,7 +119,7 @@ ThrowCompletionOr<PlainMonthDay*> to_temporal_month_day(GlobalObject& global_obj
}
// 4. Perform ? ToTemporalOverflow(options).
TRY(to_temporal_overflow(global_object, *options));
(void)TRY(to_temporal_overflow(global_object, *options));
// 5. Let string be ? ToString(item).
auto string = TRY(item.to_string(global_object));