Skip to content

Commit

Permalink
Fix condition to check if a list is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
rshad committed Mar 18, 2020
1 parent 0b92465 commit 96e2e89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/fragments/_rootcheck.erb
Expand Up @@ -35,7 +35,7 @@
<% if @ossec_rootcheck_rootkit_trojans-%>
<rootkit_trojans><%= @ossec_rootcheck_rootkit_trojans %></rootkit_trojans>
<%- end -%>
<%- if @ossec_rootcheck_system_audit -%>
<%- if !@ossec_rootcheck_system_audit.empty? -%>
<%- @ossec_rootcheck_system_audit.each do |audit_file| -%>
<system_audit><%= audit_file %></system_audit>
<%- end -%>
Expand Down

0 comments on commit 96e2e89

Please sign in to comment.