Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
jshawl committed Jun 6, 2024
1 parent a5f59ee commit 5c636f9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/lustre_hash_state.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@ pub fn init(msg: fn(String, String) -> msg) -> effect.Effect(msg) {
/// ```
/// will dipatch the HashChange msg with the decoded value.
pub fn from_base64(value: String) {
case bit_array.base64_url_decode(value) {
Error(Nil) -> value
Ok(r) ->
case bit_array.to_string(r) {
Error(Nil) -> value
Ok(decoded) -> decoded
}
}
case bit_array.base64_url_decode(value) {
Error(Nil) -> value
Ok(r) ->
case bit_array.to_string(r) {
Error(Nil) -> value
Ok(decoded) -> decoded
}
}
}

/// A convenience method to base64 url encode individual values.
Expand Down

0 comments on commit 5c636f9

Please sign in to comment.