Browse Source

nextcloud: Remove redundant client traversal

pull/82/head
jld3103 2 years ago
parent
commit
c4d470efbb
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 2
      packages/nextcloud/lib/src/version_supported.dart

2
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<bool> 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

Loading…
Cancel
Save