Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Sources/Package Manager/Package.Manager+Resolution.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ extension Package.Manager {
}

let bytes: [Byte]
do throws(File.System.Read.Full.Error) {
// The closure is non-throwing, so `E` infers as `Never` and the
// closure arm of the thrown `Either` is statically uninhabited.
do throws(Either<File.System.Read.Full.Error, Never>) {
bytes = try File(location).read.full { span in
var storage = [Byte]()
storage.reserveCapacity(span.count)
Expand Down
Loading