Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonzlin committed May 2, 2024
1 parent 9c9bc47 commit 4021746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edge/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async fn get_map_terrain(
let Some(map) = data.maps.get(&variant) else {
return Err(axum::http::StatusCode::NOT_FOUND);
};
let Some(img) = map.terrain.get(typ) else {
let Some(img) = map.terrain.get(&typ) else {
return Err(axum::http::StatusCode::NOT_FOUND);
};
Ok(img.to_vec())
Expand Down

0 comments on commit 4021746

Please sign in to comment.