Skip to content

Commit c93f5e1

Browse files
committed
fix open
1 parent b439edf commit c93f5e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stream.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ end
7676
# -----------------
7777

7878
function Base.open(f::Function, ::Type{T}, args...) where T<:TranscodingStream
79+
stream = T(open(args...))
7980
try
80-
stream = T(open(args...))
8181
f(stream)
8282
catch
8383
rethrow()

0 commit comments

Comments
 (0)