remove redundant return
This commit is contained in:
parent
2e779a9b08
commit
6a4a46e868
|
@ -243,7 +243,7 @@ impl Game {
|
|||
);
|
||||
|
||||
if index.is_some() {
|
||||
return Ok(&self.sprites[index.unwrap()])
|
||||
Ok(&self.sprites[index.unwrap()])
|
||||
} else {
|
||||
Err(SpriteNotFound)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue