Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen committed Oct 25, 2023
1 parent faaad2c commit 1ede2dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/javadb/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ func Update() error {

var err error
updater.once.Do(func() {
err = updater.Update()
if updateErr := updater.Update(); updateErr != nil {
err = xerrors.Errorf("Java DB update error: %w", err)
}
})
return err
}
Expand Down

0 comments on commit 1ede2dd

Please sign in to comment.