Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Fix linter findings for errorlint (part2) #12702

Merged
merged 1 commit into from
Feb 22, 2023
Merged

chore: Fix linter findings for errorlint (part2) #12702

merged 1 commit into from
Feb 22, 2023

Conversation

zak-pawel
Copy link
Collaborator

Address findings for errorlint - finds code that can cause problems with the error wrapping scheme introduced in Go 1.13.

It is only part of the bigger job.
After all findings in whole project are handled, we can enable errorlint linter to guard this.

Following findings in plugins/aggregators, plugins/common, plugins/parsers, plugins/processors, plugins/secretstores and plugins/serializers packages were fixed:

plugins/aggregators/quantile/quantile.go:118:72                             errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/encoding/decoder_reader.go:136:64                            errorlint  comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error
plugins/common/encoding/decoder_reader.go:148:9                             errorlint  comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error
plugins/common/encoding/decoder_reader.go:151:9                             errorlint  comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error
plugins/common/encoding/decoder_reader.go:157:24                            errorlint  comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error
plugins/common/jolokia2/client.go:163:60                                    errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/opcua/client.go:187:56                                       errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/opcua/opcua_util.go:50:67                                    errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/opcua/opcua_util.go:59:69                                    errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/opcua/opcua_util.go:90:65                                    errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/opcua/opcua_util.go:95:76                                    errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/opcua/opcua_util.go:98:73                                    errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/opcua/opcua_util.go:101:63                                   errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/opcua/opcua_util.go:106:75                                   errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/opcua/opcua_util.go:110:59                                   errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/opcua/opcua_util.go:113:72                                   errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/opcua/opcua_util.go:116:62                                   errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/opcua/opcua_util.go:140:70                                   errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/opcua/opcua_util.go:285:56                                   errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/opcua/opcua_util.go:307:71                                   errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/opcua/opcua_util.go:313:71                                   errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/shim/goshim.go:113:57                                        errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/shim/goshim.go:118:53                                        errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/shim/input.go:20:50                                          errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/shim/input.go:41:51                                          errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/shim/output.go:17:50                                         errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/shim/processor.go:27:50                                      errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/shim/processor.go:58:7                                       errorlint  comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error
plugins/common/shim/processor.go:61:33                                      errorlint  type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors
plugins/common/starlark/builtins.go:104:56                                  errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/starlark/builtins.go:117:56                                  errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/starlark/builtins.go:124:56                                  errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/starlark/builtins.go:136:56                                  errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/starlark/builtins.go:149:56                                  errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/starlark/builtins.go:152:56                                  errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/starlark/builtins.go:165:56                                  errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/starlark/builtins.go:171:56                                  errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/starlark/builtins.go:176:57                                  errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/starlark/builtins.go:262:56                                  errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/starlark/builtins.go:275:56                                  errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/starlark/builtins.go:289:56                                  errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/starlark/logging.go:32:56                                    errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/starlark/starlark.go:111:60                                  errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/starlark/starlark.go:141:20                                  errorlint  type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors
plugins/common/tls/config.go:152:90                                         errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/tls/config.go:161:64                                         errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/tls/config.go:175:64                                         errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/tls/config.go:200:52                                         errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/tls/config.go:204:62                                         errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/tls/config.go:214:59                                         errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/common/tls/config.go:226:64                                         errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/collectd/parser.go:71:55                                    errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/csv/parser.go:166:59                                        errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/csv/parser.go:396:65                                        errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/csv/parser.go:401:67                                        errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/csv/parser.go:406:66                                        errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/dropwizard/parser.go:131:106                                errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/dropwizard/parser.go:157:89                                 errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/graphite/parser.go:111:61                                   errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/graphite/parser.go:128:61                                   errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/influx/handler.go:65:20                                     errorlint  type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors
plugins/parsers/influx/handler.go:78:20                                     errorlint  type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors
plugins/parsers/influx/handler.go:91:20                                     errorlint  type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors
plugins/parsers/influx/handler.go:120:20                                    errorlint  type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors
plugins/parsers/influx/influx_upstream/parser.go:91:13                      errorlint  type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors
plugins/parsers/influx/influx_upstream/parser.go:252:45                     errorlint  comparing with != will fail on wrapped errors. Use errors.Is to check for a specific error
plugins/parsers/influx/influx_upstream/parser_test.go:662:9                 errorlint  comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error
plugins/parsers/influx/influx_upstream/parser_test.go:852:8                 errorlint  comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error
plugins/parsers/influx/machine_test.go:1713:22                              errorlint  comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error
plugins/parsers/influx/machine_test.go:2141:22                              errorlint  comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error
plugins/parsers/influx/machine_test.go:2180:22                              errorlint  comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error
plugins/parsers/influx/parser.go:88:6                                       errorlint  comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error
plugins/parsers/influx/parser.go:206:5                                      errorlint  comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error
plugins/parsers/influx/parser.go:210:14                                     errorlint  type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors
plugins/parsers/influx/parser_test.go:632:9                                 errorlint  comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error
plugins/parsers/influx/parser_test.go:819:8                                 errorlint  comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error
plugins/parsers/json/parser.go:164:66                                       errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/json/parser.go:169:60                                       errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/json_v2/parser.go:78:71                                     errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/json_v2/parser.go:589:83                                    errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/json_v2/parser.go:595:82                                    errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/json_v2/parser.go:601:84                                    errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/json_v2/parser.go:607:83                                    errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/nagios/parser.go:30:12                                      errorlint  type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors
plugins/parsers/prometheus/parser.go:53:8                                   errorlint  comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error
plugins/parsers/prometheus/parser.go:56:80                                  errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/prometheus/parser.go:63:61                                  errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/prometheusremotewrite/parser.go:26:66                       errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/wavefront/element.go:139:6                                  errorlint  comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error
plugins/parsers/xpath/msgpack_document.go:20:62                             errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/xpath/parser.go:215:62                                      errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/xpath/parser.go:232:60                                      errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/xpath/parser.go:248:65                                      errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/xpath/parser.go:285:91                                      errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/xpath/parser.go:293:77                                      errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/xpath/parser.go:336:73                                      errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/xpath/parser.go:342:74                                      errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/xpath/parser.go:362:67                                      errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/xpath/parser.go:388:95                                      errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/xpath/parser.go:396:79                                      errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/xpath/parser.go:442:69                                      errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/xpath/protocolbuffer_document.go:46:97                      errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/parsers/xpath/protocolbuffer_document.go:55:57                      errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/processors/enum/enum.go:50:62                                       errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/processors/execd/execd.go:142:7                                     errorlint  comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error
plugins/processors/execd/execd.go:146:33                                    errorlint  type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors
plugins/processors/execd/execd_test.go:159:7                                errorlint  comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error
plugins/processors/execd/execd_test.go:162:33                               errorlint  type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors
plugins/processors/ifname/ifname.go:147:46                                  errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/processors/ifname/ifname.go:151:47                                  errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/processors/noise/noise.go:97:56                                     errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/processors/regex/regex.go:64:56                                     errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/processors/regex/regex.go:81:56                                     errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/processors/topk/topk.go:94:73                                       errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/secretstores/jose/jose.go:44:52                                     errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/secretstores/jose/jose.go:62:51                                     errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/secretstores/os/os.go:46:58                                         errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/secretstores/os/os.go:50:51                                         errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/serializers/influx/influx.go:116:16                                 errorlint  type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors
plugins/serializers/influx/reader.go:56:16                                  errorlint  type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors
plugins/serializers/json/json.go:65:69                                      errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/serializers/json/json.go:96:73                                      errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
plugins/serializers/prometheusremotewrite/prometheusremotewrite.go:239:60   errorlint  non-wrapping format verb for fmt.Errorf. Use `%w` to format errors

@powersj powersj added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Feb 17, 2023
@telegraf-tiger
Copy link
Contributor

@@ -393,17 +393,17 @@ outer:
case "int":
val, err = strconv.ParseInt(value, 10, 64)
if err != nil {
return nil, fmt.Errorf("column type: parse int error %s", err)
return nil, fmt.Errorf("column type: parse int error %w", err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return nil, fmt.Errorf("column type: parse int error %w", err)
return nil, fmt.Errorf("column type: parse int error: %w", err)

}
case "float":
val, err = strconv.ParseFloat(value, 64)
if err != nil {
return nil, fmt.Errorf("column type: parse float error %s", err)
return nil, fmt.Errorf("column type: parse float error %w", err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return nil, fmt.Errorf("column type: parse float error %w", err)
return nil, fmt.Errorf("column type: parse float error: %w", err)

}
case "bool":
val, err = strconv.ParseBool(value)
if err != nil {
return nil, fmt.Errorf("column type: parse bool error %s", err)
return nil, fmt.Errorf("column type: parse bool error %w", err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return nil, fmt.Errorf("column type: parse bool error %w", err)
return nil, fmt.Errorf("column type: parse bool error: %w", err)

@@ -108,7 +108,7 @@ func (p *Parser) ParseLine(line string) (telegraf.Metric, error) {
// Parse value.
v, err := strconv.ParseFloat(fields[1], 64)
if err != nil {
return nil, fmt.Errorf(`field "%s" value: %s`, fields[0], err)
return nil, fmt.Errorf(`field "%s" value: %w`, fields[0], err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return nil, fmt.Errorf(`field "%s" value: %w`, fields[0], err)
return nil, fmt.Errorf("field %q value: %w", fields[0], err)

@@ -125,7 +125,7 @@ func (p *Parser) ParseLine(line string) (telegraf.Metric, error) {
// Parse timestamp.
unixTime, err := strconv.ParseFloat(fields[2], 64)
if err != nil {
return nil, fmt.Errorf(`field "%s" time: %s`, fields[0], err)
return nil, fmt.Errorf(`field "%s" time: %w`, fields[0], err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return nil, fmt.Errorf(`field "%s" time: %w`, fields[0], err)
return nil, fmt.Errorf("field %q time: %w", fields[0], err)

}
return r, nil
case "int":
r, err := strconv.ParseInt(inputType, 10, 64)
if err != nil {
return nil, fmt.Errorf("Unable to convert field '%s' to type int: %v", name, err)
return nil, fmt.Errorf("unable to convert field '%s' to type int: %w", name, err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return nil, fmt.Errorf("unable to convert field '%s' to type int: %w", name, err)
return nil, fmt.Errorf("unable to convert field %q to type int: %w", name, err)

@@ -586,25 +586,25 @@ func (p *Parser) convertType(input gjson.Result, desiredType string, name string
case "uint":
r, err := strconv.ParseUint(inputType, 10, 64)
if err != nil {
return nil, fmt.Errorf("Unable to convert field '%s' to type uint: %v", name, err)
return nil, fmt.Errorf("unable to convert field '%s' to type uint: %w", name, err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return nil, fmt.Errorf("unable to convert field '%s' to type uint: %w", name, err)
return nil, fmt.Errorf("unable to convert field %q to type uint: %w", name, err)

Honestly, I think just %s would be sufficient as well for these..

@@ -91,7 +91,7 @@ func (t *TopK) generateGroupByKey(m telegraf.Metric) (string, error) {
var err error
t.tagsGlobs, err = filter.Compile(t.GroupBy)
if err != nil {
return "", fmt.Errorf("could not compile pattern: %v %v", t.GroupBy, err)
return "", fmt.Errorf("could not compile pattern: %v %w", t.GroupBy, err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return "", fmt.Errorf("could not compile pattern: %v %w", t.GroupBy, err)
return "", fmt.Errorf("could not compile pattern %q: %w", t.GroupBy, err)

@@ -128,7 +128,7 @@ func (p *Parser) parseTime(buf []byte) (time.Time, error) {
}
t, err := time.Parse(timeFormat, timeString)
if err != nil {
return time.Time{}, fmt.Errorf("time %s cannot be parsed with format %s, %s", timeString, timeFormat, err)
return time.Time{}, fmt.Errorf("time %s cannot be parsed with format %s, %w", timeString, timeFormat, err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -154,7 +154,7 @@ func (p *Parser) unmarshalMetrics(buf []byte) (map[string]interface{}, error) {
var jsonOut map[string]interface{}
err := json.Unmarshal(registryBytes, &jsonOut)
if err != nil {
err = fmt.Errorf("unable to parse dropwizard metric registry from JSON document, %s", err)
err = fmt.Errorf("unable to parse dropwizard metric registry from JSON document, %w", err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While I agree with @Hipska's comments to unify error messaging format and use %q, I also think this is beyond the present PR. Therefor, I do approve and merge the PR. A checker for %q would be awesome for the next linter round. ;-)

if err == ErrEOF {
if errors.Is(err, ErrEOF) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could make use of require.ErrorIs here (see https://pkg.go.dev/github.com/stretchr/testify/require#ErrorIs), but I don't want to hold up this PR for that small improvement.

@srebhan srebhan merged commit 4201f24 into influxdata:master Feb 22, 2023
@Hipska
Copy link
Contributor

Hipska commented Feb 22, 2023

There were also other instances where a : was missing which @zak-pawel agreed to update in the PR..

I will put up a PR changing all to %q.

powersj pushed a commit that referenced this pull request Feb 27, 2023
Co-authored-by: Pawel Zak <Pawel Zak>
(cherry picked from commit 4201f24)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants