From 8a7a3f92a4979f91d793c3d9bb08f3099a0d9926 Mon Sep 17 00:00:00 2001 From: Dylan Griffith Date: Wed, 6 Jun 2018 10:56:15 +0200 Subject: [PATCH] Remove unnecessary @pushing_directory bool in QA::Factory::Repository::Push --- qa/qa/factory/repository/push.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qa/qa/factory/repository/push.rb b/qa/qa/factory/repository/push.rb index e302f5398df..28711c12701 100644 --- a/qa/qa/factory/repository/push.rb +++ b/qa/qa/factory/repository/push.rb @@ -18,7 +18,6 @@ module QA @commit_message = "This is a test commit" @branch_name = 'master' @new_branch = true - @pushing_directory = false end def remote_branch @@ -29,7 +28,6 @@ module QA raise "Must set directory as a Pathname" unless dir.is_a?(Pathname) @directory = dir - @pushing_directory = true end def fabricate! @@ -51,7 +49,7 @@ module QA repository.checkout(branch_name) end - if @pushing_directory + if @directory @directory.each_child do |f| repository.add_file(f.basename, f.read) if f.file? end