Skip to content

Commit

Permalink
upd/Linter to 1.55 (#2627)
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-khimov authored Oct 23, 2023
2 parents 676eb88 + c477de6 commit ba0d0fa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.0
version: v1.55.0
args: --timeout=5m
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ HUB_IMAGE ?= nspccdev/neofs
HUB_TAG ?= "$(shell echo ${VERSION} | sed 's/^v//')"

GO_VERSION ?= 1.21
LINT_VERSION ?= 1.54.0
LINT_VERSION ?= 1.55.0
ARCH = amd64

BIN = bin
Expand Down
20 changes: 11 additions & 9 deletions pkg/services/object/get/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ func (e *storageEngineWrapper) get(exec *execCtx) (*object.Object, error) {
}

return r.Header(), nil
} else if rng := exec.ctxRange(); rng != nil {
}

if rng := exec.ctxRange(); rng != nil {
var getRange engine.RngPrm
getRange.WithAddress(exec.address())
getRange.WithPayloadRange(rng)
Expand All @@ -223,17 +225,17 @@ func (e *storageEngineWrapper) get(exec *execCtx) (*object.Object, error) {
}

return r.Object(), nil
} else {
var getPrm engine.GetPrm
getPrm.WithAddress(exec.address())
}

r, err := e.engine.Get(getPrm)
if err != nil {
return nil, err
}
var getPrm engine.GetPrm
getPrm.WithAddress(exec.address())

return r.Object(), nil
r, err := e.engine.Get(getPrm)
if err != nil {
return nil, err
}

return r.Object(), nil
}

func (w *partWriter) WriteChunk(p []byte) error {
Expand Down

0 comments on commit ba0d0fa

Please sign in to comment.