mirror of
https://github.com/SigNoz/signoz.git
synced 2026-02-03 08:33:26 +00:00
chore(lint): enable wastedassign (#10103)
Some checks failed
build-staging / prepare (push) Has been cancelled
build-staging / js-build (push) Has been cancelled
build-staging / go-build (push) Has been cancelled
build-staging / staging (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
Some checks failed
build-staging / prepare (push) Has been cancelled
build-staging / js-build (push) Has been cancelled
build-staging / go-build (push) Has been cancelled
build-staging / staging (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
This commit is contained in:
@@ -12,6 +12,7 @@ linters:
|
|||||||
- misspell
|
- misspell
|
||||||
- nilnil
|
- nilnil
|
||||||
- sloglint
|
- sloglint
|
||||||
|
- wastedassign
|
||||||
- unparam
|
- unparam
|
||||||
- unused
|
- unused
|
||||||
settings:
|
settings:
|
||||||
|
|||||||
@@ -279,7 +279,7 @@ func (c *conditionBuilder) buildSpanScopeCondition(key *telemetrytypes.Telemetry
|
|||||||
return "", errors.NewInvalidInputf(errors.CodeInvalidInput, "span scope field %s only supports '=' operator", key.Name)
|
return "", errors.NewInvalidInputf(errors.CodeInvalidInput, "span scope field %s only supports '=' operator", key.Name)
|
||||||
}
|
}
|
||||||
|
|
||||||
isTrue := false
|
var isTrue bool
|
||||||
switch v := value.(type) {
|
switch v := value.(type) {
|
||||||
case bool:
|
case bool:
|
||||||
isTrue = v
|
isTrue = v
|
||||||
|
|||||||
Reference in New Issue
Block a user