ax(mining): replace prose comment with usage example on findMinerBinary

AX Principle 2: comments must show HOW with real values, not restate
what the type signature already says.

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 10:43:06 +01:00
parent ab83727e47
commit bc5aa094dc
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -323,8 +323,8 @@ func compareVersions(v1, v2 []int) int {
return 0
}
// findMinerBinary searches for the miner's executable file.
// It returns the absolute path to the executable if found, prioritizing the highest versioned installation.
// path, err := b.findMinerBinary()
// // path == "/home/user/.local/share/lethean-desktop/miners/xmrig/xmrig-6.24.0/xmrig"
func (b *BaseMiner) findMinerBinary() (string, error) {
executableName := b.ExecutableName
if runtime.GOOS == "windows" {