Skip to content

Commit

Permalink
CodeQL: Mitigate reports about py/unnecessary-lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Nov 24, 2022
1 parent 5380b5a commit 6b07527
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crate/crash/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ def bwc_bool_transform_from(cls, x):
def __init__(self, path):
self.type_mapping = {
str: partial(self._get_or_set,
transform_from=lambda x: str(x),
transform_to=lambda x: str(x)),
transform_from=str,
transform_to=str),
int: partial(self._get_or_set,
transform_from=lambda x: int(x),
transform_to=lambda x: str(x)),
transform_from=int,
transform_to=str),
bool: partial(self._get_or_set,
transform_from=Configuration.bwc_bool_transform_from,
transform_to=lambda x: str(int(x))),
Expand Down

0 comments on commit 6b07527

Please sign in to comment.