Browse Source

Minor coding style fixups

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Joachim Nilsson 5 years ago
parent
commit
44771f6919
1 changed files with 5 additions and 6 deletions
  1. 5
    6
      src/light.c

+ 5
- 6
src/light.c View File

957
 
957
 
958
     uint64_t old_value = value;
958
     uint64_t old_value = value;
959
     value *= ctx->run_params.float_value;
959
     value *= ctx->run_params.float_value;
960
-    
960
+ 
961
     // Check that we actually de/increase value
961
     // Check that we actually de/increase value
962
-    if( value == old_value ) {
963
-        if( ctx->runs_params.float_value > 1 ) {
962
+    if(value == old_value)
963
+    {
964
+        if(ctx->runs_params.float_value > 1)
964
             value++;
965
             value++;
965
-        }
966
-        if( ctx->runs_params.float_value < 1 && value > 0 ) {
966
+        if(ctx->runs_params.float_value < 1 && value > 0)
967
             value--;
967
             value--;
968
-        }
969
     }
968
     }
970
 
969
 
971
     uint64_t mincap = _light_get_min_cap(ctx);
970
     uint64_t mincap = _light_get_min_cap(ctx);