Skip to content

Commit

Permalink
removed some redundant checks
Browse files Browse the repository at this point in the history
  • Loading branch information
BrentBlanckaert committed Dec 10, 2024
1 parent 387f42f commit 2e62ce3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tested/languages/typescript/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,6 @@ def convert_function_call(call: FunctionCall, internal=False) -> str:
def convert_declaration(statement: Statement, tp: AllTypes | VariableType) -> str:
if isinstance(tp, VariableType):
return f"{tp.data}"
elif tp == AdvancedStringTypes.CHAR:
return "string"
elif isinstance(tp, AdvancedNumericTypes):
return "number"
elif tp == AdvancedNothingTypes.NULL:
return "null"

Check warning on line 140 in tested/languages/typescript/generators.py

View check run for this annotation

Codecov / codecov/patch

tested/languages/typescript/generators.py#L140

Added line #L140 was not covered by tests
elif tp == AdvancedNothingTypes.UNDEFINED:
Expand Down

0 comments on commit 2e62ce3

Please sign in to comment.