TF-1487 Apply linter rule

This commit is contained in:
dab246
2023-02-24 12:12:54 +07:00
committed by Dat Vu
parent 117a8a8fc6
commit 2b71aba278
155 changed files with 798 additions and 1039 deletions
+3 -3
View File
@@ -32,9 +32,9 @@ class Attachment with EquatableMixin {
bool hasCid() => cid != null && cid?.isNotEmpty == true;
String getDownloadUrl(String baseDownloadUrl, AccountId accountId) {
final downloadUriTemplate = UriTemplate('$baseDownloadUrl');
final downloadUriTemplate = UriTemplate(baseDownloadUrl);
final downloadUri = downloadUriTemplate.expand({
'accountId' : '${accountId.id.value}',
'accountId' : accountId.id.value,
'blobId' : '${blobId?.value}',
'name' : '$name',
'type' : '${type?.mimeType}',
@@ -68,7 +68,7 @@ extension ContentDispositionExtension on ContentDisposition {
case ContentDisposition.attachment:
return 'attachment';
case ContentDisposition.other:
return this.toString();
return toString();
}
}
}