diff options
author | Markus Roberts <Markus@reality.com> | 2010-07-09 18:06:56 -0700 |
---|---|---|
committer | Markus Roberts <Markus@reality.com> | 2010-07-09 18:06:56 -0700 |
commit | c3e2353afb7fc2fb12efd1eb2bc5c342c792fb3b (patch) | |
tree | 4d328a1598165cf7e40363ef995b180322df168a /install.rb | |
parent | 42a539061293f8e745a9dc5b97b4415b6a275e04 (diff) | |
download | puppet-c3e2353afb7fc2fb12efd1eb2bc5c342c792fb3b.tar.gz puppet-c3e2353afb7fc2fb12efd1eb2bc5c342c792fb3b.tar.xz puppet-c3e2353afb7fc2fb12efd1eb2bc5c342c792fb3b.zip |
Code smell: Use &&= for dependent initialization
Replaced 6 occurances of
([$@]?\w+) += +(.*) +(if +\1|unless +\1.nil\?)$
with
\1 &&= \2
3 Examples:
The code:
end
becomes:
end
The code:
becomes:
The code:
res
becomes:
res
Diffstat (limited to 'install.rb')
0 files changed, 0 insertions, 0 deletions