From 5dc95dea3fc31c1dc0f328c3e421bbbac361a562 Mon Sep 17 00:00:00 2001 From: The one with the braid Date: Wed, 31 Jan 2024 13:26:29 +0100 Subject: [PATCH] fix: nested void function in encryption helper - remove the accidentally nested void in the ffiInit implementation Signed-off-by: The one with the braid --- lib/src/database/sqflite_encryption_helper/io.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/database/sqflite_encryption_helper/io.dart b/lib/src/database/sqflite_encryption_helper/io.dart index 7b7dba73..44300280 100644 --- a/lib/src/database/sqflite_encryption_helper/io.dart +++ b/lib/src/database/sqflite_encryption_helper/io.dart @@ -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