Skip to content

Commit c380b02

Browse files
committed
fixed the guard clause
1 parent ba2cdda commit c380b02

File tree

1 file changed

+1
-1
lines changed
  • lib/puppet/provider/vcsrepo

1 file changed

+1
-1
lines changed

lib/puppet/provider/vcsrepo/git.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ def add_safe_directory
642642

643643
# @!visibility private
644644
def remove_safe_directory
645-
return if safe_directories.include?(@resource.value(:path))
645+
return unless safe_directories.include?(@resource.value(:path))
646646

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

0 commit comments

Comments
 (0)