refactor(windows): Fix code style

Took 3 minutes
This commit is contained in:
MTRNord 2020-10-22 12:10:53 +02:00
parent 986c03e45f
commit 986c357a6b
No known key found for this signature in database
GPG Key ID: 24246E46C46C8623

View File

@ -77,9 +77,9 @@ Future<Database> constructDb(
}
DynamicLibrary _openOnWindows() {
final exe_path = File(
Platform.resolvedExecutable.replaceAll(RegExp(r'fluffychat.exe'), ''));
final libraryNextToScript = File('${exe_path.path}/sqlite3.dll');
final exePath =
File(Platform.resolvedExecutable.replaceAll('fluffychat.exe', ''));
final libraryNextToScript = File('${exePath.path}/sqlite3.dll');
return DynamicLibrary.open(libraryNextToScript.path);
}