diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-12-11 09:28:46 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-12-14 12:51:58 -0800 |
commit | 3e6e9460e229bb232a54915f1fa09996ce9d9350 (patch) | |
tree | 738bceeb023474b2faa0e40af31d56d935b14746 /lib/chef/resource | |
parent | fcddd49c722bce14ccb889dd61c919993e361ae4 (diff) | |
download | chef-3e6e9460e229bb232a54915f1fa09996ce9d9350.tar.gz |
can be less verbose about creating Arrays
Diffstat (limited to 'lib/chef/resource')
-rw-r--r-- | lib/chef/resource/file.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/file.rb b/lib/chef/resource/file.rb index ba55cb15a5..b41d1ba743 100644 --- a/lib/chef/resource/file.rb +++ b/lib/chef/resource/file.rb @@ -58,7 +58,7 @@ class Chef property :atomic_update, [ true, false ], desired_state: false, default: Chef::Config[:file_atomic_update] property :force_unlink, [ true, false ], desired_state: false, default: false property :manage_symlink_source, [ true, false ], desired_state: false - property :verifications, Array, default: lazy { Array.new } + property :verifications, Array, default: lazy { [] } def verify(command=nil, opts={}, &block) if ! (command.nil? || [String, Symbol].include?(command.class)) |