Skip to content

Commit

Permalink
update cmt
Browse files Browse the repository at this point in the history
  • Loading branch information
NEUpanning committed Nov 4, 2024
1 parent d36b68d commit e3f74e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions velox/functions/lib/DateTimeFormatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1588,8 +1588,7 @@ Expected<DateTimeResult> DateTimeFormatter::parse(
}
}

// Ensure all input was consumed if type_ is not LENIENT_SIMPLE or
// STRICT_SIMPLE datetime formatter.
// Ensure all input was consumed if type_ is not simple datetime formatter.
if (type_ != DateTimeFormatterType::LENIENT_SIMPLE &&
type_ != DateTimeFormatterType::STRICT_SIMPLE && cur < end) {
return parseFail(input, cur, end);
Expand Down

0 comments on commit e3f74e6

Please sign in to comment.