From 327a32f563394f92313e4a751515d69d90f4e7f5 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 12 Oct 2025 23:30:08 +0530 Subject: formatted code --- invoice/hooks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'invoice/hooks.go') diff --git a/invoice/hooks.go b/invoice/hooks.go index b0ec877..68d730b 100644 --- a/invoice/hooks.go +++ b/invoice/hooks.go @@ -34,7 +34,7 @@ func (i *Invoice) BeforeSave(tx *gorm.DB) error { } func (i *Invoice) BeforeDelete(tx *gorm.DB) error { - // if ID is 0, invoice won't be deleted + // if ID is 0, invoice won't be deleted if i.ID == 0 { return errors.ErrNoWhereCondition } -- cgit v1.2.3