Skip to content

Commit

Permalink
Fix warnings produced by recent changes
Browse files Browse the repository at this point in the history
  • Loading branch information
migueldeicaza committed Dec 9, 2023
1 parent db3cabb commit ec07b5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SwiftGodot/Core/SignalSupport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public class SimpleSignal {
callback ()
guard let signalProxy else { return }
signalProxy.proxy = nil
signalProxy.callDeferred(method: "free")
_ = signalProxy.callDeferred(method: "free")
}
} else {
signalProxy.proxy = { args in
Expand All @@ -130,7 +130,7 @@ public class SimpleSignal {
public func disconnect (_ token: Object) {
guard let signalProxy = token as? SignalProxy else { return }
signalProxy.proxy = nil
signalProxy.callDeferred(method: "free")
_ = signalProxy.callDeferred(method: "free")
target.disconnect(signal: signalName, callable: Callable (object: token, method: SignalProxy.proxyName))
}

Expand Down

0 comments on commit ec07b5d

Please sign in to comment.