Skip to content

Commit

Permalink
fix: omit nil check (linter)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgerojas26 committed Aug 29, 2024
1 parent aba1453 commit 272bb12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Home.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 272bb12

Please sign in to comment.