remove redundant return

This commit is contained in:
Max Bradbury 2020-06-23 15:34:28 +01:00
parent 2e779a9b08
commit 6a4a46e868
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ impl Game {
); );
if index.is_some() { if index.is_some() {
return Ok(&self.sprites[index.unwrap()]) Ok(&self.sprites[index.unwrap()])
} else { } else {
Err(SpriteNotFound) Err(SpriteNotFound)
} }