don't decrypt empty values
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
2025-03-20 17:56:11 -05:00
parent b42dc4e942
commit 225a5cedc5
2 changed files with 7 additions and 0 deletions

View File

@@ -259,6 +259,10 @@ Future<Map<String, dynamic>> convertAllToString(
}
String encryptValue(String value, String password) {
if (value.isEmpty) {
return value;
}
final sodium = constants.sodium;
if (sodium == null) {
return value;