Skip to content

Commit 860f6ac

Browse files
committed
style: fix error [SIM211] - Use not ... instead of False if ... else True.
Used Ruff (vscode and pre-commit) to: - Black-compatible code formatting. - fix all auto-fixable violations. - isort-compatible import sorting. - flake8-simplify manual fixes. Signed-off-by: Paulo Vital <paulo.vital@ibm.com>
1 parent 4532879 commit 860f6ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/instana/sampling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ def __init__(self) -> None:
4040
self._sampled: SamplingPolicy = SamplingPolicy.DROP
4141

4242
def sampled(self) -> bool:
43-
return False if self._sampled == SamplingPolicy.DROP else True
43+
return self._sampled != SamplingPolicy.DROP

0 commit comments

Comments
 (0)