Skip to content

Commit

Permalink
removed unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
daveshanley committed Apr 18, 2024
1 parent 49edceb commit 27bd55c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions document.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,7 @@ func (d *document) RenderAndReload() ([]byte, Document, *DocumentModel[v3high.Do

newDoc, err := NewDocumentWithConfiguration(newBytes, d.config)
errs = append(errs, err)
if newDoc == nil {
return newBytes, nil, nil, errs
}

// build the model.
m, buildErrs := newDoc.BuildV3Model()
if buildErrs != nil {
Expand Down

0 comments on commit 27bd55c

Please sign in to comment.