refactor: In functions like ListOffChainData and GetMissingBatchKeys, although defer rows.Close() is used, if QueryxContext fails, rows will be nil. Calling defer rows.Close() in this case can trigger a panic. #596
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
push: | |
branches: | |
- main | |
- master | |
- develop | |
- update-external-dependencies | |
- 'release/**' | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.21.x | |
cache: false | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Lint | |
uses: golangci/[email protected] | |
with: | |
args: --timeout 10m --verbose |