Skip to content

Commit

Permalink
Remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
fdennis committed Dec 9, 2024
1 parent b5a13db commit a734cde
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/desktop/init.dart
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,7 @@ Future<Widget> initialize(List<String> argv) async {
prefs = await SharedPreferences.getInstance();
} catch (error) {
// Attempt to repair the broken preferences file
Directory? appSupportDirectory = await getApplicationSupportDirectory();
var doesDirectoryExist = await appSupportDirectory.exists();
if (!doesDirectoryExist) {
throw const FormatException('Unable to find correct directory');
}
Directory appSupportDirectory = await getApplicationSupportDirectory();
String appDataPath =
path.join(appSupportDirectory.path, 'shared_preferences.json');
await _repairPreferences(appDataPath);
Expand Down

0 comments on commit a734cde

Please sign in to comment.