Merge pull request #1701 from TheOneWithTheBraid/braid/encryption-helper-nested-void

fix: nested void function in encryption helper
This commit is contained in:
Krille-chan 2024-01-31 13:36:12 +01:00 committed by GitHub
commit 8d31ee3351
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -38,8 +38,7 @@ class SQfLiteEncryptionHelper {
/// );
/// }
/// ```
static void ffiInit() =>
() => open.overrideForAll(_loadSQLCipherDynamicLibrary);
static void ffiInit() => open.overrideForAll(_loadSQLCipherDynamicLibrary);
static DynamicLibrary _loadSQLCipherDynamicLibrary() {
// Taken from https://github.com/simolus3/sqlite3.dart/blob/e66702c5bec7faec2bf71d374c008d5273ef2b3b/sqlite3/lib/src/load_library.dart#L24