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