From 272bb128cd137df4337357228910285071fcda13 Mon Sep 17 00:00:00 2001 From: Jorge Rojas Date: Thu, 29 Aug 2024 14:30:12 -0400 Subject: [PATCH] fix: omit nil check (linter) --- components/Home.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Home.go b/components/Home.go index c279a3f..ca8c80e 100644 --- a/components/Home.go +++ b/components/Home.go @@ -273,7 +273,7 @@ func (home *Home) homeInputCapture(event *tcell.EventKey) *tcell.EventKey { App.Stop() } } else if command == commands.Save { - if (home.ListOfDbChanges != nil && len(home.ListOfDbChanges) > 0) || (home.ListOfDbInserts != nil && len(home.ListOfDbInserts) > 0) && !table.GetIsEditing() { + if ((len(home.ListOfDbChanges) > 0) || len(home.ListOfDbInserts) > 0) && !table.GetIsEditing() { confirmationModal := NewConfirmationModal("") confirmationModal.SetDoneFunc(func(_ int, buttonLabel string) {