summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorLuke Wilde <lukew@serenityos.org>2021-12-08 18:49:31 +0000
committerLinus Groh <mail@linusgroh.de>2021-12-08 19:11:50 +0000
commit80dcddaceab01582ceb033ec4a649842b100d9bd (patch)
tree6e7798e98448583ac8c2ff95cfbb40e04b95401c /Userland
parent6244969ae2439cff856bdcb1ed78ee36e5f40197 (diff)
downloadserenity-80dcddaceab01582ceb033ec4a649842b100d9bd.zip
LibJS: Simplify return in parse_temporal_date_time_string
This is an editorial change in the Temporal spec. See: https://github.com/tc39/proposal-temporal/commit/1f7e486
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp
index fa0f5192b0..5f20ab2ab6 100644
--- a/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp
+++ b/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp
@@ -1319,11 +1319,8 @@ ThrowCompletionOr<ISODateTime> parse_temporal_date_time_string(GlobalObject& glo
return vm.throw_completion<RangeError>(global_object, ErrorType::TemporalInvalidDateTimeStringUTCDesignator, iso_string);
}
- // 4. Let result be ? ParseISODateTime(isoString).
- auto result = TRY(parse_iso_date_time(global_object, *parse_result));
-
- // 5. Return result.
- return result;
+ // 4. Return ? ParseISODateTime(isoString).
+ return parse_iso_date_time(global_object, *parse_result);
}
// 13.40 ParseTemporalDurationString ( isoString ), https://tc39.es/proposal-temporal/#sec-temporal-parsetemporaldurationstring