fixed no new variable

This commit is contained in:
Radu Ioan Fericean
2016-02-08 12:43:21 +02:00
parent 2b2c16976f
commit 160dcbe950

View File

@@ -40,7 +40,7 @@ func (self *ApierV1) AddAccountActionTriggers(attr AttrAddAccountActionTriggers,
}
accID := utils.AccountKey(attr.Tenant, attr.Account)
var account *engine.Account
_, err := engine.Guardian.Guard(func() (interface{}, error) {
_, err = engine.Guardian.Guard(func() (interface{}, error) {
if acc, err := self.AccountDb.GetAccount(accID); err == nil {
account = acc
} else {