# HG changeset patch # User Sascha L. Teichmann # Date 1563355821 -7200 # Node ID 8af156928a2db880014c837d342ba124f55881c0 # Parent 2f9ad89f780f21acae34ad61b58975c091363c37 Removed stupid bool == true comparision. diff -r 2f9ad89f780f -r 8af156928a2d pkg/controllers/importconfig.go --- a/pkg/controllers/importconfig.go Wed Jul 17 11:29:20 2019 +0200 +++ b/pkg/controllers/importconfig.go Wed Jul 17 11:30:21 2019 +0200 @@ -105,7 +105,7 @@ oldPasswd, ok := pc.Attributes["password"] pc.User = session.User pc.Attributes = common.Attributes{} - if ok == true { + if ok { pc.Attributes["password"] = oldPasswd } pc.Attributes.Marshal(config) // Marshal only overwrites keys present in config