Skip to content

Commit

Permalink
fix empty tensors
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Sep 30, 2024
1 parent 8ec5f27 commit af8b798
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/Suite/ASN1SCG/Name.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ import Foundation
try DER.sequence(root, identifier: .sequence) { nodes in
var w1: [AttributeTypeAndValue] = []
while let node = nodes.next() {
w1.append(contentsOf:
try DER.set(of: AttributeTypeAndValue.self, identifier: .set, rootNode: node))
w1.append(contentsOf: try DER.set(of: AttributeTypeAndValue.self, identifier: .set, rootNode: node))
}
if (w1 != []) { w.append(w1) }
}
Expand Down

0 comments on commit af8b798

Please sign in to comment.