From 3db33a9311acf6ec3d52980fac1363223613ffb0 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Thu, 8 May 2014 16:37:50 +0200 Subject: [PATCH] Use Ruby `unless` instead of `if not` --- files/gitlab-cookbooks/gitlab/libraries/helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/gitlab-cookbooks/gitlab/libraries/helper.rb b/files/gitlab-cookbooks/gitlab/libraries/helper.rb index 90a595c..a2eefe1 100644 --- a/files/gitlab-cookbooks/gitlab/libraries/helper.rb +++ b/files/gitlab-cookbooks/gitlab/libraries/helper.rb @@ -87,7 +87,7 @@ end module SingleQuoteHelper def single_quote(string) - "'#{string}'" if not string.nil? + "'#{string}'" unless string.nil? end end -- libgit2 0.21.2