git » sdk » commit 8cbdd7a

Deprecation warning

author Stephen Paul Weber
2024-05-21 02:53:17 UTC
committer Stephen Paul Weber
2024-05-21 02:53:17 UTC
parent f2de648295149f745d119bb1e55b11fabaa756b5

Deprecation warning

snikket/Client.hx +1 -1

diff --git a/snikket/Client.hx b/snikket/Client.hx
index 3342f11..53a83a9 100644
--- a/snikket/Client.hx
+++ b/snikket/Client.hx
@@ -992,7 +992,7 @@ class Client extends EventEmitter {
 	}
 
 	private function sync(?callback: ()->Void) {
-		if (Std.is(persistence, snikket.persistence.Dummy)) {
+		if (Std.isOfType(persistence, snikket.persistence.Dummy)) {
 			callback(); // No reason to sync if we're not storing anyway
 		} else {
 			persistence.lastId(accountId(), null, (lastId) -> doSync(callback, lastId));