Skip to content

Commit

Permalink
further formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
PgBiel committed Aug 1, 2024
1 parent 2d1e2ed commit 33ceaa1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/birl.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,7 @@ pub fn parse_time_of_day(value: String) -> Result(#(TimeOfDay, String), Nil) {
}

use #(time_string, offset_string) <- result.then(case
string.ends_with(time_string, "Z")
|| string.ends_with(time_string, "z")
string.ends_with(time_string, "Z") || string.ends_with(time_string, "z")
{
True -> Ok(#(string.drop_right(value, 1), "+00:00"))
False ->
Expand Down

0 comments on commit 33ceaa1

Please sign in to comment.