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 --- customer/hooks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'customer/hooks.go') diff --git a/customer/hooks.go b/customer/hooks.go index 7f715c3..2160f40 100644 --- a/customer/hooks.go +++ b/customer/hooks.go @@ -34,7 +34,7 @@ func (c *Customer) BeforeSave(tx *gorm.DB) error { } func (c *Customer) BeforeDelete(tx *gorm.DB) error { - // if ID is 0, customer won't be deleted + // if ID is 0, customer won't be deleted if c.ID == 0 { return errors.ErrNoWhereCondition } -- cgit v1.2.3