aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/speech/SpeechService.java
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2013-07-14 16:48:37 +0200
committerSamuel Tardieu <sam@rfc1149.net>2013-07-14 16:48:37 +0200
commitd1d2a2282eb72e322dd52345c3adb0cd7eb347e1 (patch)
treee00b14797975d0237a3813d08ddd066c66fb2505 /main/src/cgeo/geocaching/speech/SpeechService.java
parent2c924b387460c8cb8e82a543a6ec0c5bc46c1aa4 (diff)
downloadcgeo-d1d2a2282eb72e322dd52345c3adb0cd7eb347e1.zip
cgeo-d1d2a2282eb72e322dd52345c3adb0cd7eb347e1.tar.gz
cgeo-d1d2a2282eb72e322dd52345c3adb0cd7eb347e1.tar.bz2
cleanup: remove unnecessary else statement
Diffstat (limited to 'main/src/cgeo/geocaching/speech/SpeechService.java')
-rw-r--r--main/src/cgeo/geocaching/speech/SpeechService.java4
1 files changed, 2 insertions, 2 deletions
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;
}