浏览代码

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

Linus Groh 3 年之前
父节点
当前提交
4eaa95769d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Userland/Libraries/LibJS/Runtime/Temporal/PlainMonthDay.cpp

+ 1 - 1
Userland/Libraries/LibJS/Runtime/Temporal/PlainMonthDay.cpp

@@ -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));