Skip to content

Commit

Permalink
Update src/Storage/Storage.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Anshul Singhvi <[email protected]>
  • Loading branch information
calvinchai and asinghvi17 authored Oct 10, 2024
1 parent 0fbed31 commit d4c14cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Storage/Storage.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ end
function writeattrs(s::AbstractStore, p, att::Dict; indent_json::Bool= false)
b = IOBuffer()

if !indent_json
JSON.print(b,att)
else
if indent_json
JSON.print(b,att,4)
else
JSON.print(b,att)
end

s[p,".zattrs"] = take!(b)
Expand Down

0 comments on commit d4c14cf

Please sign in to comment.