Closed timogoebel closed 5 years ago
This method needs a guard (e.g. return true if hosts.empty?) to check if the hosts array is not empty.
return true if hosts.empty?
hosts
https://github.com/theforeman/foreman_expire_hosts/blob/da5cf8bfa82be0751614071f6288f580359bec7d/app/services/foreman_expire_hosts/notification/base.rb#L26-L34
This method needs a guard (e.g.
return true if hosts.empty?
) to check if thehosts
array is not empty.https://github.com/theforeman/foreman_expire_hosts/blob/da5cf8bfa82be0751614071f6288f580359bec7d/app/services/foreman_expire_hosts/notification/base.rb#L26-L34