Skip to content

Commit f93ae17

Browse files
committed
unnest code on LHS of variable assignment for clarity
1 parent e0fae8a commit f93ae17

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/src/solid/utils/key_helper.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,10 @@ Future<Map<String, IndKeyRecord>> readIndKeyFile() async {
157157
);
158158

159159
// Use resource URL as key instead of relative path (in new version of CSS)
160-
indKeyMap[await getFileUrl(getVal(v, pathPred) as String)] = IndKeyRecord(
160+
final String relFilePath = await getVal(v, pathPred) as String;
161+
final String fileUrl = await getFileUrl(relFilePath);
162+
163+
indKeyMap[fileUrl] = IndKeyRecord(
161164
encKeyBase64: getVal(v, sessionKeyPred) as String,
162165
ivBase64: getVal(v, ivPred) as String,
163166
resourcePath: getVal(v, pathPred) as String,

0 commit comments

Comments
 (0)