Skip to content

Commit

Permalink
Removing NSNull check that sometimes crashes on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdsupremacist committed May 17, 2021
1 parent 3ae6975 commit c306e04
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Sources/GraphZahl/Utils/MethodInfo+resolve.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@ extension MethodInfo {
} as [Any]

let result = try self.call(receiver: receiver, arguments: arguments)
if result is NSNull {
return eventLoop.next().makeSucceededFuture(Optional<Int>.none)
}

// TODO: for some reason this breaks with arrays...
// this will break the server if we ever return [Future<T>]
Expand Down

0 comments on commit c306e04

Please sign in to comment.