diff --git a/lib/dpl/provider/scalingo.rb b/lib/dpl/provider/scalingo.rb
index <HASH>..<HASH> 100644
--- a/lib/dpl/provider/scalingo.rb
+++ b/lib/dpl/provider/scalingo.rb
@@ -63,7 +63,9 @@ module DPL
           end
         end
 
-        error "Couldn't push your app." if !context.shell "git push #{@remote} #{@branch} -f"
+        if !context.shell "git push #{@remote} #{@branch} -f"
+          error "Couldn't push your app."
+        end
       end
 
       def scalingo(command, env = [], input = '')
Undo one RuboCop offence which is weird