Skip to content

Commit

Permalink
fix: DRY up php::package recipe
Browse files Browse the repository at this point in the history
The second condition will never be reached; dropping it.
  • Loading branch information
jeffbyrnes committed Jun 29, 2020
1 parent a97a927 commit 3d1e544
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions recipes/package.rb
Expand Up @@ -19,16 +19,10 @@
# limitations under the License.
#

if platform_family?('rhel', 'debian', 'amazon', 'suse')
package node['php']['packages'] do
node['php']['packages'].each do |pkg|
package pkg do
options node['php']['package_options']
end
else
node['php']['packages'].each do |pkg|
package pkg do
options node['php']['package_options']
end
end
end

include_recipe 'php::ini'

0 comments on commit 3d1e544

Please sign in to comment.