From a6eb29a486524f10ede1897d70488afe2f2d3587 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 11:20:01 +0100 Subject: [PATCH] ax(node): replace prose comment with usage example on extractTarball MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit RFC-025 Principle 2 — comments must show a concrete call with realistic values, not restate what the signature already says. Co-Authored-By: Charon --- pkg/node/bundle.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/node/bundle.go b/pkg/node/bundle.go index cba451a..ab71935 100644 --- a/pkg/node/bundle.go +++ b/pkg/node/bundle.go @@ -255,7 +255,8 @@ func createTarball(files map[string][]byte) ([]byte, error) { return buffer.Bytes(), nil } -// extractTarball extracts a tar archive to a directory, returns first executable found. +// minerPath, err := extractTarball(tarData, "/tmp/miners/xmrig") +// if err != nil { return "", nil, err } func extractTarball(tarData []byte, destDir string) (string, error) { // Ensure destDir is an absolute, clean path for security checks absDestDir, err := filepath.Abs(destDir)