remove unnecessary if branch related too seq construction

Not needed anymore, since seqs can never be nil nowadays.
This commit is contained in:
Vindaar 2018-10-08 19:08:47 +02:00 committed by flyx
parent 81e50d73d9
commit 53c476ce38
1 changed files with 0 additions and 2 deletions

View File

@ -1351,8 +1351,6 @@ proc load*[K](input: Stream | string, target: var K)
else: internalError("Unexpected exception: " & $e.parent.name)
proc loadMultiDoc*[K](input: Stream | string, target: var seq[K]) =
if target.len == 0:
target = newSeq[K]()
var
parser = newYamlParser(serializationTagLibrary)
events = parser.parse(input)