streamline isFinished
authorMeryem Esa <meresa14@gmail.com>
Sun, 14 Feb 2016 18:56:34 +0000 (10:56 -0800)
committerMeryem Esa <meresa14@gmail.com>
Mon, 15 Feb 2016 01:01:38 +0000 (17:01 -0800)
src/org/usfirst/frc/team3501/robot/commands/driving/TurnForTime.java

index 3a5f61ba80dd5b8ba7cb9d270748f68ccebfa9b7..6401fb141a99aa44d7c674e6016eef02a3e9119a 100755 (executable)
@@ -18,7 +18,7 @@ import edu.wpi.first.wpilibj.command.Command;
  *
  * TODO: test for speed/ time constants for specific angles (ex. 30 degrees, 60
  * degrees, 90 degrees)
- * 
+ *
  * @author Meryem, Avi, and Sarvesh
  *
  */
@@ -58,9 +58,7 @@ public class TurnForTime extends Command {
 
   @Override
   protected boolean isFinished() {
-    if (timer.get() >= seconds)
-      return true;
-    return false;
+    return (timer.get() >= seconds);
   }
 
   @Override