Skip to content

Commit

Permalink
Revert "Improved code"
Browse files Browse the repository at this point in the history
This reverts commit a69a28c.
  • Loading branch information
gokadzev committed Jan 5, 2024
1 parent 8872524 commit d1024cb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,11 @@ void main() async {

Future<void> initialisation() async {
try {
final boxNames = ['settings', 'user', 'userNoBackup', 'cache'];

for (final boxName in boxNames) {
await Hive.openBox(boxName);
}
await Hive.initFlutter();
await Hive.openBox('settings');
await Hive.openBox('user');
await Hive.openBox('userNoBackup');
await Hive.openBox('cache');

audioHandler = await AudioService.init(
builder: MusifyAudioHandler.new,
Expand Down

0 comments on commit d1024cb

Please sign in to comment.