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:
parent
ab83727e47
commit
bc5aa094dc
1 changed files with 2 additions and 2 deletions
|
|
@ -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" {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue