Add curly braces to for and if statements.
[controller.git] / opendaylight / sal / api / src / main / java / org / opendaylight / controller / sal / utils / SingletonTask.java
index 634caac6ed98a8dc8f8f857a7b20b4b74b490144..5d363f128544056a3639f661634bab429896c3a9 100644 (file)
@@ -165,10 +165,12 @@ public class SingletonTask {
         }
 
         if (needQueue) {
-            if (delay <= 0)
+            if (delay <= 0) {
                 ses.execute(stw);
-            else
+            }
+            else {
                 ses.schedule(stw, delay, unit);
+            }
         }
     }
 }
\ No newline at end of file