refactor: enable errorlint and refactor code (#14110)

* refactor: enable errorlint and refactor code

* revert

* revert

* add bazel

* gofmt

* gofmt

* gofmt

* gofmt

* gci

* lint

---------

Co-authored-by: Radosław Kapka <rkapka@wp.pl>
This commit is contained in:
Khanh Hoa
2024-07-05 05:40:13 +07:00
committed by GitHub
parent 8070fc8ece
commit 7a394062e1
106 changed files with 279 additions and 304 deletions

View File

@@ -31,7 +31,7 @@ func LogThis(err error) {
log.WithError(err).Error("Something bad happened, but this log statement is OK :)")
_ = fmt.Errorf("this is ok: %v", err)
_ = fmt.Errorf("this is ok: %w", err)
}
func do() (bool, error) {