ax(node): rename abbreviated dn to dataNode in CreateMinerBundle
AX Principle 1 — predictable names over short names. `dn` is an opaque abbreviation for a *datanode.DataNode; `dataNode` conveys the type at a glance without requiring context lookup. Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
parent
cf4d52a3b7
commit
51595300a2
1 changed files with 2 additions and 2 deletions
|
|
@ -101,13 +101,13 @@ func CreateMinerBundle(minerPath string, profileJSON []byte, name string, passwo
|
|||
}
|
||||
|
||||
// Create DataNode from tarball
|
||||
dn, err := datanode.FromTar(tarData)
|
||||
dataNode, err := datanode.FromTar(tarData)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to create datanode: %w", err)
|
||||
}
|
||||
|
||||
// Create TIM from DataNode
|
||||
timContainer, err := tim.FromDataNode(dn)
|
||||
timContainer, err := tim.FromDataNode(dataNode)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to create TIM: %w", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue