chore: update golangci-lint to version 1.42, fix linter warnings
Description
- update golangci-lint to version 1.42
- fix linter warnings
Related issue
Examples
Checklist
-
the MR description has been reviewed -
this MR contains text changes and they have been reviewed OR there are no texts changes -
this MR contains GUI/CLI changes and they have been reviewed OR there are no GUI/CLI changes -
this MR contains API changes, specifications reflect those changes and they have been reviewed OR there are no API changes
Edited by Artyom Kartasov