Merge pull request #22 from tssajo/tssajo3

Do not overuse defer unnecessarily
This commit is contained in:
Claudemiro
2016-08-07 10:10:18 -03:00
committed by GitHub
+1 -3
View File
@@ -30,10 +30,8 @@ func newMemdb() *memdb {
func (db *memdb) AddApp(a *app) error {
db.Lock()
defer db.Unlock()
db.Apps = append(db.Apps, a)
db.Unlock()
return nil
}