From 55e7fef6974b88ad3786175100e29c09bb74302b Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Thu, 1 Jul 2021 14:32:07 +0200 Subject: [PATCH] fix tests Stop being an idiot --- lib/core/sorted_notes_folder.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/sorted_notes_folder.dart b/lib/core/sorted_notes_folder.dart index 6fba797c..1cf5b2fd 100644 --- a/lib/core/sorted_notes_folder.dart +++ b/lib/core/sorted_notes_folder.dart @@ -74,7 +74,7 @@ class SortedNotesFolder with NotesFolderNotifier implements NotesFolder { assert(i != -1); // FIXME: This should never be happening // However, lets not crash! - if (i != -1) { + if (i == -1) { return; }