Skip to content

Conversation

@PulokSaha0706
Copy link

No description provided.

Signed-off-by: Pulok Saha <puloksaha@appscode.com>
@anisurrahman75
Copy link
Member

In the pkg/util.go create a method like below:

func removeDirWithLogErr(dir string) {
	if err := os.RemoveAll(dir); err != nil {
		klog.Errorf("failed to remove directory %s. Reason: %v", dir, err)
	}
}

And replace the os.RemoveAll(ScratchDir) call with removeDirWithLogErr(ScratchDir). If the prefix is defer, then keep the defer word also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants