From 6a4a46e8688bd7b67e2a8612de978845c8ca0a4f Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Tue, 23 Jun 2020 15:34:28 +0100 Subject: [PATCH] remove redundant return --- src/game.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game.rs b/src/game.rs index e327ff5..8376d5c 100644 --- a/src/game.rs +++ b/src/game.rs @@ -243,7 +243,7 @@ impl Game { ); if index.is_some() { - return Ok(&self.sprites[index.unwrap()]) + Ok(&self.sprites[index.unwrap()]) } else { Err(SpriteNotFound) }