Skip to content

Commit 2a32018

Browse files
committed
add explicit returns
1 parent d169dce commit 2a32018

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/datasets.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,22 +63,25 @@ struct DatasetVersion
6363
size = _get_json(json, "size", Int; msg)
6464
timestamp = _parse_tz(_get_json(json, "date", String; msg); msg)
6565
blobstore_path = _get_json(json, "blobstore_path", String; msg)
66-
new((owner, name), version, size, timestamp, blobstore_path)
66+
return new((owner, name), version, size, timestamp, blobstore_path)
6767
end
6868
end
6969

7070
function Base.show(io::IO, dsv::DatasetVersion)
7171
owner, name = dsv._dsref
7272
dsref = string("(\"", owner, "\", \"", name, "\")")
7373
print(io, "JuliaHub.dataset($dsref).versions[$(dsv.id)]")
74+
return nothing
7475
end
76+
7577
function Base.show(io::IO, ::MIME"text/plain", dsv::DatasetVersion)
7678
owner, name = dsv._dsref
7779
printstyled(io, "DatasetVersion:"; bold=true)
7880
print(io, " ", name, " @ v", dsv.id)
7981
print(io, "\n owner: ", owner)
8082
print(io, "\n timestamp: ", dsv.timestamp)
8183
print(io, "\n size: ", dsv.size, " bytes")
84+
return nothing
8285
end
8386

8487
"""

0 commit comments

Comments
 (0)