Commit d7fa4f3e authored by DivyPatel9881's avatar DivyPatel9881

fix: formatting.

parent a9ba0421
......@@ -242,7 +242,9 @@ func (a *Adapter) AddPolicies(sec string, ptype string, rules [][]string) error
}
err := a.db.RunInTransaction(func(tx *pg.Tx) error {
_, err := tx.Model(&lines).OnConflict("DO NOTHING").Insert()
_, err := tx.Model(&lines).
OnConflict("DO NOTHING").
Insert()
return err
})
......@@ -265,7 +267,8 @@ func (a *Adapter) RemovePolicies(sec string, ptype string, rules [][]string) err
}
err := a.db.RunInTransaction(func(tx *pg.Tx) error {
_, err := tx.Model(&lines).Delete()
_, err := tx.Model(&lines).
Delete()
return err
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment