Skip to content

Commit a1ae572

Browse files
committed
Fix linter error with updated linter
Signed-off-by: Phil Estes <[email protected]>
1 parent b638791 commit a1ae572

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

integration/util/util_windows.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,8 @@ func parseEndpoint(endpoint string) (string, string, error) {
117117
return "npipe", fmt.Sprintf("//%s%s", host, u.Path), nil
118118
} else if u.Scheme == "" {
119119
return "", "", fmt.Errorf("Using %q as endpoint is deprecated, please consider using full url format", endpoint)
120-
} else {
121-
return u.Scheme, "", fmt.Errorf("protocol %q not supported", u.Scheme)
122120
}
121+
return u.Scheme, "", fmt.Errorf("protocol %q not supported", u.Scheme)
123122
}
124123

125124
// LocalEndpoint empty implementation

tracing/plugin/otlp.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,9 @@ func newExporter(ctx context.Context, cfg *OTLPConfig) (*otlptrace.Exporter, err
117117
opts = append(opts, otlptracegrpc.WithInsecure())
118118
}
119119
return otlptracegrpc.New(ctx, opts...)
120-
} else {
121-
// Other protocols such as "http/json" are not supported.
122-
return nil, fmt.Errorf("OpenTelemetry protocol %q is not supported", cfg.Protocol)
123120
}
121+
// Other protocols such as "http/json" are not supported.
122+
return nil, fmt.Errorf("OpenTelemetry protocol %q is not supported", cfg.Protocol)
124123
}
125124

126125
// newTracer configures protocol-agonostic tracing settings such as

0 commit comments

Comments
 (0)