Skip to content

Commit 64ff428

Browse files
committed
refactor: improve code readability by adjusting line breaks in orjson serialization
1 parent 7391bb3 commit 64ff428

File tree

2 files changed

+4070
-3
lines changed

2 files changed

+4070
-3
lines changed

src/yokedcache/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ async def _display_stats(cache: YokedCache, format: str, output: Optional[str] =
162162
"table_stats": stats.table_stats,
163163
"tag_stats": stats.tag_stats,
164164
}
165-
output_content = orjson.dumps(
166-
stats_dict, option=orjson.OPT_INDENT_2
167-
).decode("utf-8")
165+
output_content = orjson.dumps(stats_dict, option=orjson.OPT_INDENT_2).decode(
166+
"utf-8"
167+
)
168168
if output:
169169
with open(output, "w") as f:
170170
f.write(output_content)

0 commit comments

Comments
 (0)