Skip to content

Commit

Permalink
Tiny fix of compile-time check on osFile
Browse files Browse the repository at this point in the history
This is a tiny fix of a compile-time check on osFile.

It's not like it _matters_ all that much, as the missing method would be caught in other layers anyway, but when the check is there, it should be correct :)

Signed-off-by: Karel Bílek <kb@karelbilek.com>
  • Loading branch information
karelbilek committed Feb 27, 2024
1 parent caf1f43 commit e4a26a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/sysfs/osfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (f *osFile) SetAppend(enable bool) (errno experimentalsys.Errno) {
}

// compile-time check to ensure osFile.reopen implements reopenFile.
var _ reopenFile = (*fsFile)(nil).reopen
var _ reopenFile = (*osFile)(nil).reopen

func (f *osFile) reopen() (errno experimentalsys.Errno) {
// Clear any create flag, as we are re-opening, not re-creating.
Expand Down

0 comments on commit e4a26a5

Please sign in to comment.