Remove redundant code

This commit is contained in:
vishnukvmd 2022-11-11 17:05:28 +05:30
parent 09ae14a1d6
commit 2386a5a10b

View file

@ -30,9 +30,7 @@ class CodeStore {
}
Future<void> addCode(Code code) async {
final codes = await getAllCodes();
code.id = await _authenticatorService.addEntry(jsonEncode(code.rawData));
codes.add(code);
Bus.instance.fire(CodesUpdatedEvent());
}