Skip to content

Commit

Permalink
bugfix: error in Do will never return to outer scope
Browse files Browse the repository at this point in the history
Signed-off-by: Guangming Wang <guangming.wang@daocloud.io>
  • Loading branch information
Guangming Wang committed Sep 26, 2019
1 parent 3a85983 commit 3991295
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/olm/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ type Manager struct {
once sync.Once
}

func (m *Manager) initialize() (err error) {
func (m *Manager) initialize() error {
var err error
m.once.Do(func() {
if m.Client == nil {
cfg, err := config.GetConfig()
Expand Down

0 comments on commit 3991295

Please sign in to comment.