Skip to content

Commit ac273e0

Browse files
committed
refactor: a bit more readable
1 parent b2ada81 commit ac273e0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

script.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,13 @@ const xpc_type_uint64 = getPtr("_xpc_type_uint64");
7272
const xpc_type_uuid = getPtr("_xpc_type_uuid");
7373

7474
// check which version of decoder we have
75-
var NSXPCDecoderDecodeMethod = null;
75+
var NSXPCDecoderDecodeMethod = "old"
7676
var connResult = null;
7777

7878
var decoder = NSXPCDecoder.alloc().init();
7979

8080
if ((connResult = decoder["- setConnection:"]) != null) {
8181
NSXPCDecoderDecodeMethod = "new";
82-
} else {
83-
NSXPCDecoderDecodeMethod = "old";
8482
}
8583

8684
// helper function that will create new NativeFunction

0 commit comments

Comments
 (0)