Skip to content

Commit 1d37eef

Browse files
committed
Fix lint errors
1 parent 53e7c21 commit 1d37eef

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/orchestrator/internal/sandbox/template/mask_template.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func NewMaskTemplate(
3838
return t
3939
}
4040

41-
func (c *MaskTemplate) Close(ctx context.Context) error {
41+
func (c *MaskTemplate) Close(context.Context) error {
4242
if c.memfile != nil {
4343
return (*c.memfile).Close()
4444
}

packages/orchestrator/internal/sandbox/uffd/testutils/page_mmap.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ func newMmap(size, pagesize uint64, flags int) ([]byte, uintptr, func() error, e
3636
return nil, 0, nil, err
3737
}
3838

39-
close := func() error {
39+
closeMmap := func() error {
4040
return syscall.Munmap(b)
4141
}
4242

43-
return b, uintptr(unsafe.Pointer(&b[0])), close, nil
43+
return b, uintptr(unsafe.Pointer(&b[0])), closeMmap, nil
4444
}

0 commit comments

Comments
 (0)