Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Bjorn Lu <[email protected]>
  • Loading branch information
TheOtterlord and bluwy authored Jan 10, 2025
1 parent fc1bef9 commit c30e5fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/transform/transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func ExtractStyles(doc *astro.Node) {
if !IsHoistable(n) {
return
}
// prepend node to maintain authored order
// append node to maintain authored order
doc.Styles = append(doc.Styles, n)
}
})
Expand Down Expand Up @@ -434,7 +434,7 @@ func ExtractScript(doc *astro.Node, n *astro.Node, opts *TransformOptions, h *ha
}
}

// prepend node to maintain authored order
// append node to maintain authored order
if shouldAdd {
doc.Scripts = append(doc.Scripts, n)
n.HandledScript = true
Expand Down

0 comments on commit c30e5fd

Please sign in to comment.