summaryrefslogtreecommitdiff
path: root/lib/puppet
diff options
context:
space:
mode:
authorAaron Stone <aaron@serendipity.cx>2013-07-19 11:52:12 -0700
committerAaron Stone <aaron@serendipity.cx>2013-07-19 22:12:49 -0700
commit7e87ef1cf732641fa6390bf2c9011e4277b01aea (patch)
treea08d119522d965e89b1f934d4a8300645860523f /lib/puppet
parentf59c13151963f46a4f2fc1081450f631c2fd2395 (diff)
Style adjustment
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/provider/vcsrepo/git.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/puppet/provider/vcsrepo/git.rb b/lib/puppet/provider/vcsrepo/git.rb
index 1ca1751..58330f6 100644
--- a/lib/puppet/provider/vcsrepo/git.rb
+++ b/lib/puppet/provider/vcsrepo/git.rb
@@ -239,9 +239,7 @@ Puppet::Type.type(:vcsrepo).provide(:git, :parent => Puppet::Provider::Vcsrepo)
# git < 1.6 returns '#{@resource.value(:remote)}/#{revision}'
# git 1.6+ returns 'remotes/#{@resource.value(:remote)}/#{revision}'
branch = at_path { branches.grep /(remotes\/)?#{@resource.value(:remote)}\/#{revision}/ }
- if branch.length > 0
- return branch
- end
+ branch unless branch.empty?
end
def local_branch_revision?(revision = @resource.value(:revision))