Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
shanemadden committed Nov 28, 2023
1 parent 5eb3c5d commit 480f91e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/objects/impls/room_terrain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ impl RoomTerrain {
pub fn get_raw_buffer_to_array(&self, destination: &Uint8Array) -> Result<(), ErrorCode> {
let val = self.get_raw_buffer_to_array_internal(destination);

// val is integer if error; if object it's another reference to the Uint8Array; function
// was successful in that case
// val is integer if error; if object it's another reference to the Uint8Array;
// function was successful in that case
match val.as_f64() {
Some(n) => ErrorCode::result_from_i8(n as i8),
None => Ok(())
None => Ok(()),
}
}
}

0 comments on commit 480f91e

Please sign in to comment.