Skip to content

Commit e6f2fa1

Browse files
committed
Lint
1 parent 528315d commit e6f2fa1

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

lib/src/solid/read_external_pod.dart

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -74,27 +74,27 @@ Future<dynamic> readExternalPod(
7474
// Get master key from the user if required
7575
await getKeyFromUserIfRequired(context, child);
7676

77-
Key? indKey;
78-
79-
// Decrypt if reading an encrypted file
80-
if (await KeyManager.hasSharedIndividualKey(fileUrl)) {
81-
// Get the individual key for the file
82-
indKey = await KeyManager.getSharedIndividualKey(fileUrl);
83-
} else if (hasInheritedKey(
77+
Key? indKey;
78+
79+
// Decrypt if reading an encrypted file
80+
if (await KeyManager.hasSharedIndividualKey(fileUrl)) {
81+
// Get the individual key for the file
82+
indKey = await KeyManager.getSharedIndividualKey(fileUrl);
83+
} else if (hasInheritedKey(
84+
fileContent,
85+
fileUrl,
86+
)) {
87+
// Get the individual key for the file
88+
final parentDirPath = getParentDir(
8489
fileContent,
8590
fileUrl,
86-
)) {
87-
// Get the individual key for the file
88-
final parentDirPath = getParentDir(
89-
fileContent,
90-
fileUrl,
91-
);
92-
final parentDirUrl = getExtDirUrl(fileUrl, parentDirPath);
93-
indKey = await KeyManager.getSharedIndividualKey(parentDirUrl);
94-
}
95-
96-
if (indKey != null) {
97-
// Decrypt the file content
91+
);
92+
final parentDirUrl = getExtDirUrl(fileUrl, parentDirPath);
93+
indKey = await KeyManager.getSharedIndividualKey(parentDirUrl);
94+
}
95+
96+
if (indKey != null) {
97+
// Decrypt the file content
9898

9999
final dataMap = parseTTL(fileContent);
100100
assert(dataMap.containsKey(fileUrl));

lib/src/solid/revoke_permission.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ Future<dynamic> revokePermission(
9090
resourceUrl = fileName;
9191
}
9292

93-
// Check if file/directory exists
94-
final resStatus = await checkResourceStatus(resourceUrl, isFile: isFile);
93+
// Check if file/directory exists
94+
final resStatus = await checkResourceStatus(resourceUrl, isFile: isFile);
9595

9696
if (resStatus == ResourceStatus.exist) {
9797
// Common list of remover IDs to process further

0 commit comments

Comments
 (0)