osc: fix poorly written code
This commit is contained in:
parent
fe64ba00ed
commit
0e86045317
1 changed files with 2 additions and 4 deletions
|
|
@ -165,14 +165,12 @@ module.exports = {
|
|||
|
||||
var message = []
|
||||
|
||||
if (!Array.isArray(args)) args = [args]
|
||||
if (typeof args=='object' && args!==null) {
|
||||
for (i in args) {
|
||||
for (var i in args) {
|
||||
var arg = parseArg(args[i],precision)
|
||||
if (arg!=null) message.push(arg)
|
||||
}
|
||||
} else if (args!==null){
|
||||
var arg = parseArg(args[i],precision)
|
||||
if (arg!=null) message.push(arg)
|
||||
}
|
||||
|
||||
var data = oscOutFilter({address:address, args: message, host: host, port: port})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue