Skip to content

Commit

Permalink
Tune fastValidate comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
niemeyer authored Oct 7, 2024
1 parent 75bcd67 commit 0d986bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/manifest/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,10 @@ func unixPerm(mode fs.FileMode) (perm uint32) {
return perm
}

// fastvalidate validates the data to be written into the manifest on disk.
// fastValidate validates the data to be written into the manifest.
// This is validating internal structures which are supposed to be correct unless there is
// a bug. As such, only assertions that can be done quickly are performed here, instead
// of it being a comprehensive validation of all the structures.
func fastValidate(options *WriteOptions) (err error) {
defer func() {
if err != nil {
Expand Down

0 comments on commit 0d986bc

Please sign in to comment.