feat: [#491] Fix the errors thrown by Lint/nilaway CI #2521
Triggered via pull request
September 29, 2024 15:04
Status
Failure
Total duration
1m 26s
Artifacts
–
lint.yml
on: pull_request
lint
/
lint
1m 14s
lint
/
nilaway
38s
Annotations
10 errors
lint / nilaway:
support/docker/docker.go#L26
error: Potential nil panic detected. Observed nil flow from source to dereference point:
|
lint / nilaway
literal `nil` returned from `Database()` in position 0
|
lint / nilaway
result 0 of `Database()` returned from `Mysqls()` in position 0
|
lint / nilaway
result 0 of `Mysqls()` sliced into
|
lint / nilaway:
support/docker/docker.go#L26
error: Potential nil panic detected. Observed nil flow from source to dereference point:
|
lint / nilaway
deep read from global variable `containers` lacking guarding; returned from `Database()` in position 0 via the assignment(s):
|
lint / nilaway
result 0 of `Database()` returned from `Mysqls()` in position 0
|
lint / nilaway
result 0 of `Mysqls()` sliced into
|
lint / nilaway:
database/gorm/event.go#L104
error: Potential nil panic detected. Observed nil flow from source to dereference point:
|
lint / nilaway
literal `nil` returned from `getDestOfMap()` in position 0
|