Skip to content

Commit

Permalink
Add indents for .zattrs and .zarray
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinchai authored Sep 30, 2024
1 parent bce2636 commit f4e1675
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Storage/Storage.jl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function getattrs(s::AbstractStore, p)
end
function writeattrs(s::AbstractStore, p, att::Dict)
b = IOBuffer()
JSON.print(b,att)
JSON.print(b,att,4)
s[p,".zattrs"] = take!(b)
att
end
Expand All @@ -112,7 +112,7 @@ isinitialized(s::AbstractStore, i) = s[i] !== nothing
getmetadata(s::AbstractStore, p,fill_as_missing) = Metadata(String(maybecopy(s[p,".zarray"])),fill_as_missing)
function writemetadata(s::AbstractStore, p, m::Metadata)
met = IOBuffer()
JSON.print(met,m)
JSON.print(met,m,4)
s[p,".zarray"] = take!(met)
m
end
Expand Down

0 comments on commit f4e1675

Please sign in to comment.