remove redundant return
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user