Browse Source

perf(nextcloud): do not use the spread operator for building lists

Signed-off-by: Nikolas Rimikis <leptopoda@users.noreply.github.com>
pull/1086/head
Nikolas Rimikis 1 year ago
parent
commit
146ee73fa2
No known key found for this signature in database
GPG Key ID: 85ED1DE9786A4FF2
  1. 6
      packages/nextcloud/lib/src/client.dart

6
packages/nextcloud/lib/src/client.dart

@ -35,17 +35,15 @@ class NextcloudClient extends DynamiteClient {
baseHeaders: language != null ? {'Accept-Language': language} : null,
userAgent: userAgentOverride ?? appType.userAgent,
authentications: [
if (appPassword != null) ...[
if (appPassword != null)
DynamiteHttpBearerAuthentication(
token: appPassword,
),
],
if (loginName != null && (password ?? appPassword) != null) ...[
if (loginName != null && (password ?? appPassword) != null)
DynamiteHttpBasicAuthentication(
username: loginName,
password: (password ?? appPassword)!,
),
],
],
);

Loading…
Cancel
Save