Skip to content

Commit

Permalink
Apply PR suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTF committed Feb 3, 2025
1 parent 1b2ff88 commit 6c05f3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ToNumericImpl {
}
} else {
// Abseil doesn't match leading + signs, so we skip them.
if (!str.empty() && str.at(0) == '+') {
if (str.starts_with('+')) {
strStart++;
}

Check warning on line 30 in src/engine/sparqlExpressions/ConvertToNumericExpression.cpp

View check run for this annotation

Codecov / codecov/patch

src/engine/sparqlExpressions/ConvertToNumericExpression.cpp#L29-L30

Added lines #L29 - L30 were not covered by tests
auto conv = absl::from_chars(strStart, strEnd, resT,
Expand Down

0 comments on commit 6c05f3b

Please sign in to comment.