Skip to content

Commit

Permalink
add comment to clarify conflict resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
letFunny committed Sep 26, 2024
1 parent 962566a commit aaf70b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/slicer/slicer.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,10 @@ func Run(options *RunOptions) error {
break
}
}
// It is okay to take the first pathInfo because the release has been
// validated when read and there are no conflicts. The only field that
// was not checked was until because it is not used for conflict
// validation.
pathInfo := slices[0].Contents[relPath]
pathInfo.Until = until
data := pathData{
Expand Down

0 comments on commit aaf70b1

Please sign in to comment.