From c380b02a20f41c9f0b0ea676c3cec8905f4480bb Mon Sep 17 00:00:00 2001 From: DIERCKXK Date: Wed, 17 Aug 2022 10:20:47 +0200 Subject: [PATCH] fixed the guard clause --- lib/puppet/provider/vcsrepo/git.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/provider/vcsrepo/git.rb b/lib/puppet/provider/vcsrepo/git.rb index cd2aa11b..d1b3f186 100644 --- a/lib/puppet/provider/vcsrepo/git.rb +++ b/lib/puppet/provider/vcsrepo/git.rb @@ -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)]