Skip to content

Commit

Permalink
fix checking falseable instead of None
Browse files Browse the repository at this point in the history
  • Loading branch information
minenwerfer committed Jan 3, 2025
1 parent 531de53 commit 7e82630
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = 'normalize_json'
version = '0.0.18'
version = '0.0.19'
authors = [
{ name = 'João Gabriel Santos', email = '[email protected]' }
]
Expand Down
2 changes: 1 addition & 1 deletion src/normalize_json/normalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def translate(
ret[original_name] = value
continue

if not initial_value:
if initial_value == None:
initial_value = get_initial_value(target, mapped_name, flat_obj)

value = handle_modifiers(node, mapped_name, modifiers, initial_value)
Expand Down

0 comments on commit 7e82630

Please sign in to comment.