Skip to content

Commit 4eb42a9

Browse files
committed
Fix broken ternary in phoenix_command
1 parent 6ba5e9c commit 4eb42a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/admin/scada/phoenix_command.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,11 @@ def run
211211
if device.start_with?('ILC 15', 'ILC 17')
212212
devicetype = '15x'
213213
print_status('--> Detected 15x/17x series, getting current CPU state:')
214-
ractionport.nil? (rport = 41100) : (rport = ractionport)
214+
ractionport.nil? ? (rport = 41100) : (rport = ractionport)
215215
elsif device.start_with?('ILC 39')
216216
devicetype = '39x'
217217
print_status('--> Detected 39x series, getting current CPU state:')
218-
ractionport.nil? (rport = 20547) : (rport = ractionport)
218+
ractionport.nil? ? (rport = 20547) : (rport = ractionport)
219219
else
220220
print_error('Only ILC and (some) RFC devices are supported.')
221221
return

0 commit comments

Comments
 (0)