aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/invoice/hooks.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2025-10-12 23:30:08 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2025-10-12 23:30:08 +0530
commit327a32f563394f92313e4a751515d69d90f4e7f5 (patch)
tree9b49fd41ac852fa459b623f7fbe7c79aaac24418 /invoice/hooks.go
parent029fe2c7a3532bc3bf435f257cdade240c8f3568 (diff)
formatted code
Diffstat (limited to 'invoice/hooks.go')
-rw-r--r--invoice/hooks.go2
1 files changed, 1 insertions, 1 deletions
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
}