From c4d470efbb3110cd6565fddcd59be3839ed8594a Mon Sep 17 00:00:00 2001 From: jld3103 Date: Wed, 5 Oct 2022 13:47:07 +0200 Subject: [PATCH] nextcloud: Remove redundant client traversal --- packages/nextcloud/lib/src/version_supported.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nextcloud/lib/src/version_supported.dart b/packages/nextcloud/lib/src/version_supported.dart index 56aeae89..9917d409 100644 --- a/packages/nextcloud/lib/src/version_supported.dart +++ b/packages/nextcloud/lib/src/version_supported.dart @@ -4,7 +4,7 @@ part of '../nextcloud.dart'; extension CoreVersionSupported on CoreClient { /// Checks if the app on the server is supported by the client Future isSupported([final CoreServerCapabilitiesOcsData? capabilities]) async => - (capabilities ?? (await rootClient.core.getCapabilities()).ocs!.data!).version!.major! == 24; + (capabilities ?? (await getCapabilities()).ocs!.data!).version!.major! == 24; } // ignore: public_member_api_docs