Skip to content

Commit

Permalink
fixed the guard clause
Browse files Browse the repository at this point in the history
  • Loading branch information
KoenDierckx committed Aug 17, 2022
1 parent ba2cdda commit c380b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/vcsrepo/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ def add_safe_directory

# @!visibility private
def remove_safe_directory
return if safe_directories.include?(@resource.value(:path))
return unless safe_directories.include?(@resource.value(:path))

notice("Removing '#{@resource.value(:path)}' from safe directory list")
args = ['config', '--global', '--unset', 'safe.directory', @resource.value(:path)]
Expand Down

0 comments on commit c380b02

Please sign in to comment.