Skip to content

Commit fb2655c

Browse files
committed
Updated the guard clause
1 parent 21770e1 commit fb2655c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/mixins/actions/vm_actions/reconfigure.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def reconfigure_calculations(mbsize)
213213

214214
# determine available switches for this host...
215215
def get_vlan_options(host)
216-
return [] unless host.present?
216+
return [] if host.blank?
217217

218218
switch_ids = Rbac.filtered(host.switches).pluck(:id)
219219
Rbac.filtered(Lan.where(:switch_id => switch_ids).order(:name)).pluck(:name)

0 commit comments

Comments
 (0)