Adds error checking for an err variable that was left unchecked by yaserazfar · Pull Request #810 · github/gh-ost

This PR is not related to an issue, but is adding an error check where an err variable was set but not checked. This could potentially help find errors when developing in the future.

Description

This PR adds an error checks for an err variable which was assigned but never checked.

In case this PR introduced Go code changes:

  • contributed code is using same conventions as original code
  • script/cibuild returns with no formatting errors, build errors or unit test errors.

This issues was found using CodeLingo - codelingo.io