From d1d2a2282eb72e322dd52345c3adb0cd7eb347e1 Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Sun, 14 Jul 2013 16:48:37 +0200 Subject: cleanup: remove unnecessary else statement --- main/src/cgeo/geocaching/speech/SpeechService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main/src/cgeo/geocaching/speech') diff --git a/main/src/cgeo/geocaching/speech/SpeechService.java b/main/src/cgeo/geocaching/speech/SpeechService.java index eac44ff..634f1c4 100644 --- a/main/src/cgeo/geocaching/speech/SpeechService.java +++ b/main/src/cgeo/geocaching/speech/SpeechService.java @@ -110,10 +110,10 @@ public class SpeechService extends Service implements OnInitListener { private static float getDeltaForDistance(final float distance) { if (distance > 1.0) { return 0.2f; - } else if (distance > 0.05) { + } + if (distance > 0.05) { return distance / 5.0f; } - return 0f; } -- cgit v1.1