Skip to content

Commit cfeb006

Browse files
- Linting fixes.
1 parent f8a5d31 commit cfeb006

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: "3.9"
33
services:
44
stackqlsrv:
55
user: "${UID}:${GID}"
6-
image: "${STACKQL_IMAGE_NAME:-stackql/stackql-devel:busted}"
6+
image: "${STACKQL_IMAGE_NAME:-stackql/stackql}"
77
build:
88
context: .
99
cache_from:

internal/stackql/primitivebuilder/generic_http_stream_input.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func (gh *genericHTTPStreamInput) getInterestingMaps(actionPrimitive primitive.I
132132
return newMapsAggregatorDTO(paramMap, inputMap), nil
133133
}
134134

135-
//nolint:funlen,gocognit // TODO: fix this
135+
//nolint:funlen,gocognit,gocyclo,cyclop // TODO: fix this
136136
func (gh *genericHTTPStreamInput) Build() error {
137137
tbl := gh.tbl
138138
handlerCtx := gh.handlerCtx
@@ -213,6 +213,7 @@ func (gh *genericHTTPStreamInput) Build() error {
213213
}
214214
paramMap := interestingMaps.getParameterMap()
215215
params := paramMap[0]
216+
//nolint:exhaustive // no big deal
216217
switch protocolType {
217218
case client.LocalTemplated:
218219
inlines := m.GetInline()
@@ -224,11 +225,11 @@ func (gh *genericHTTPStreamInput) Build() error {
224225
inlines[1:],
225226
nil,
226227
)
227-
resp, err := executor.Execute(
228+
resp, exErr := executor.Execute(
228229
map[string]any{"parameters": params},
229230
)
230-
if err != nil {
231-
return internaldto.NewErroneousExecutorOutput(err)
231+
if exErr != nil {
232+
return internaldto.NewErroneousExecutorOutput(exErr)
232233
}
233234
var backendMessages []string
234235
stdOut, stdOutExists := resp.GetStdOut()
@@ -387,5 +388,4 @@ func (gh *genericHTTPStreamInput) Build() error {
387388
gh.root = gh.dependencyNode
388389

389390
return nil
390-
391391
}

0 commit comments

Comments
 (0)