mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-19 16:21:36 +03:00
Remove unnecessary code
This commit is contained in:
parent
b5a13db8ad
commit
a734cdeaae
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user