Commit d7fa4f3e authored by DivyPatel9881's avatar DivyPatel9881

fix: formatting.

parent a9ba0421
......@@ -242,8 +242,10 @@ 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()
return err
_, err := tx.Model(&lines).
OnConflict("DO NOTHING").
Insert()
return err
})
return err
......@@ -265,8 +267,9 @@ 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()
return err
_, err := tx.Model(&lines).
Delete()
return err
})
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