Skip to content

Commit

Permalink
add a type assert to read on a Cmd (#48334)
Browse files Browse the repository at this point in the history
(cherry picked from commit 1bff32b)
  • Loading branch information
KristofferC authored and KristofferC committed Jan 23, 2023
1 parent dbe520d commit 7114a8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/process.jl
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ function read(cmd::AbstractCmd)
procs = open(cmd, "r", devnull)
bytes = read(procs.out)
success(procs) || pipeline_error(procs)
return bytes
return bytes::Vector{UInt8}
end

"""
Expand Down

0 comments on commit 7114a8e

Please sign in to comment.