update golangci-lint
This commit is contained in:
@@ -15,7 +15,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: golangci/golangci-lint-action@v2
|
- uses: golangci/golangci-lint-action@v2
|
||||||
with:
|
with:
|
||||||
version: v1.43
|
version: v1.44.2
|
||||||
|
|
||||||
mod-tidy:
|
mod-tidy:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|||||||
+8
-3
@@ -1,7 +1,6 @@
|
|||||||
|
|
||||||
linters:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
- asciicheck
|
|
||||||
- bodyclose
|
- bodyclose
|
||||||
- dupl
|
- dupl
|
||||||
- exportloopref
|
- exportloopref
|
||||||
@@ -12,13 +11,19 @@ linters:
|
|||||||
- misspell
|
- misspell
|
||||||
- lll
|
- lll
|
||||||
- prealloc
|
- prealloc
|
||||||
- predeclared
|
|
||||||
- revive
|
- revive
|
||||||
- unconvert
|
- unconvert
|
||||||
- wastedassign
|
|
||||||
- whitespace
|
- whitespace
|
||||||
disable:
|
disable:
|
||||||
- errcheck
|
- errcheck
|
||||||
|
|
||||||
issues:
|
issues:
|
||||||
exclude-use-default: false
|
exclude-use-default: false
|
||||||
|
|
||||||
|
linters-settings:
|
||||||
|
govet:
|
||||||
|
enable-all: true
|
||||||
|
disable:
|
||||||
|
- fieldalignment
|
||||||
|
- reflectvaluecompare
|
||||||
|
- shadow
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
BASE_IMAGE = golang:1.17-alpine3.14
|
BASE_IMAGE = golang:1.17-alpine3.14
|
||||||
LINT_IMAGE = golangci/golangci-lint:v1.43
|
LINT_IMAGE = golangci/golangci-lint:v1.44.2
|
||||||
NODE_IMAGE = node:14-alpine3.14
|
NODE_IMAGE = node:14-alpine3.14
|
||||||
|
|
||||||
.PHONY: $(shell ls)
|
.PHONY: $(shell ls)
|
||||||
|
|||||||
@@ -75,9 +75,7 @@ func (t *muxerTSSegment) writeH264(
|
|||||||
var af *astits.PacketAdaptationField
|
var af *astits.PacketAdaptationField
|
||||||
|
|
||||||
if idrPresent {
|
if idrPresent {
|
||||||
if af == nil {
|
af = &astits.PacketAdaptationField{}
|
||||||
af = &astits.PacketAdaptationField{}
|
|
||||||
}
|
|
||||||
af.RandomAccessIndicator = true
|
af.RandomAccessIndicator = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user