Skip to content

Commit 80dc427

Browse files
carlos3dxcclauss
andauthored
Update strings/snake_case_to_camel_pascal_case.py
Co-authored-by: Christian Clauss <cclauss@me.com>
1 parent 2c90a59 commit 80dc427

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

strings/snake_case_to_camel_pascal_case.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ def snake_to_camel_case(input: str, use_pascal: bool = False) -> str:
4343

4444
initial_word = "" if use_pascal else words[0]
4545

46-
result = "".join([initial_word] + capitalized_words)
47-
48-
return result
46+
return "".join([initial_word] + capitalized_words)
4947

5048

5149
if __name__ == "__main__":

0 commit comments

Comments
 (0)