Skip to content

Commit

Permalink
tbs: nolint
Browse files Browse the repository at this point in the history
  • Loading branch information
Omer Preminger committed Sep 15, 2023
1 parent adc6e01 commit a550c50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions internal/pkg/util/fs/overlay/overlay_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@ func DetachAndDelete(overlayDir string) error {
}

// DetachMount performs an unmount system call on the specified directory.
//
//nolint:revive,nolintlint
func DetachMount(ctx context.Context, dir string) error {
sylog.Debugf("Calling syscall.Unmount() to detach %q", dir)
if err := syscall.Unmount(dir, syscall.MNT_DETACH); err != nil {
Expand Down
2 changes: 0 additions & 2 deletions pkg/ocibundle/tools/overlay_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ func CreateOverlayTmpfs(ctx context.Context, bundlePath string, sizeMiB int, all
}

// DeleteOverlayTmpfs deletes an overlay previously created using tmpfs.
//
//nolint:revive,nolintlint
func DeleteOverlayTmpfs(ctx context.Context, bundlePath, olDir string) error {
rootFsDir := RootFs(bundlePath).Path()

Expand Down

0 comments on commit a550c50

Please sign in to comment.