Skip to content

Commit d67c1f7

Browse files
blink1073agoose77
andauthored
Update hatch_nodejs_version/version_source.py
Co-authored-by: Angus Hollands <[email protected]>
1 parent ca77baa commit d67c1f7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

hatch_nodejs_version/version_source.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ def set_version(self, version: str, version_data):
161161
with open(path, "r") as f:
162162
raw_data = f.read()
163163

164-
with open(path, "r") as f:
165-
data = json.load(f)
164+
data = json.loads(raw_data)
166165

167166
data["version"] = self.python_version_to_node(version)
168167
with open(path, "w") as f:

0 commit comments

Comments
 (0)