Skip to content

Commit

Permalink
Review fixes - remove #unset_config_file
Browse files Browse the repository at this point in the history
  • Loading branch information
zzaakiirr committed Jul 31, 2024
1 parent 9a1231c commit 652c40a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions spec/support/command_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,13 @@ def configure_config_file(extra_prefix = "")
ENV["CONFIG_FILE_PATH"] = @@tmp_config_file.path
end

def unset_config_file
@@tmp_config_file = nil # rubocop:disable Style/ClassVars
ENV["CONFIG_FILE_PATH"] = nil
end

def delete_config_file
return unless @@tmp_config_file

File.delete(@@tmp_config_file.path)
unset_config_file

@@tmp_config_file = nil # rubocop:disable Style/ClassVars
ENV["CONFIG_FILE_PATH"] = nil
end

def temporarily_switch_config_file(extra_prefix = "")
Expand Down

0 comments on commit 652c40a

Please sign in to comment.