@@ -128,7 +128,6 @@ def cmd_channel(*args)
128
128
129
129
mode = nil
130
130
chan = nil
131
- data = [ ]
132
131
133
132
# Parse options
134
133
@@channel_opts . parse ( args ) { |opt , idx , val |
@@ -331,7 +330,6 @@ def cmd_migrate_help
331
330
#
332
331
# @param args [Array<String>] Commandline arguments, only -h or a pid
333
332
# @return [void]
334
-
335
333
def cmd_migrate ( *args )
336
334
if ( args . length == 0 or args . include? ( "-h" ) )
337
335
cmd_migrate_help
@@ -367,8 +365,6 @@ def cmd_load(*args)
367
365
args . unshift ( "-h" )
368
366
end
369
367
370
- modules = nil
371
-
372
368
@@load_opts . parse ( args ) { |opt , idx , val |
373
369
case opt
374
370
when "-l"
@@ -503,11 +499,11 @@ def cmd_run(*args)
503
499
reloaded_mod = client . framework . modules . reload_module ( original_mod )
504
500
505
501
unless reloaded_mod
506
- error = client . framework . modules . module_load_error_by_path [ original_mod . file_path ]
502
+ error = client . framework . modules . module_load_error_by_path [ original_mod . file_path ]
507
503
print_error ( "Failed to reload module: #{ error } " )
508
504
509
505
return
510
- end
506
+ end
511
507
512
508
opts = ( args + [ "SESSION=#{ client . sid } " ] ) . join ( ',' )
513
509
reloaded_mod . run_simple (
@@ -694,8 +690,7 @@ def cmd_write(*args)
694
690
}
695
691
696
692
# Find the channel associated with this cid, assuming the cid is valid.
697
- if ( ( !cid ) or
698
- ( !( channel = client . find_channel ( cid ) ) ) )
693
+ if ( ( !cid ) or ( !( channel = client . find_channel ( cid ) ) ) )
699
694
print_error ( "Invalid channel identifier specified." )
700
695
return true
701
696
end
0 commit comments