Skip to content

Commit

Permalink
bugfix naming_convention formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
bohendo committed Feb 10, 2025
1 parent 8dee964 commit 78fe705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slither/formatters/naming_convention/naming_convention.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def _is_var_declaration(slither: SlitherCompilationUnit, filename: str, start: i
:return:
"""
v = "var "
return slither.core.source_code[filename][start : start + len(v)] == v
return slither.core.source_code[filename].encode("utf8")[start : start + len(v)].decode("utf8") == v


def _explore_type( # pylint: disable=too-many-arguments,too-many-locals,too-many-branches
Expand Down

0 comments on commit 78fe705

Please sign in to comment.