Skip to content

Commit

Permalink
🚑 Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wesen committed Feb 11, 2025
1 parent 87aa839 commit 9a60ef1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/config/editor.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (c *ConfigEditor) AddToolDirectory(profile, path string, defaults map[strin

// Get or create the directories sequence
var dirSeqNode *yaml.Node
dirSeqNode, err = c.editor.GetMapNode("directories", toolsNode)
_, err = c.editor.GetMapNode("directories", toolsNode)
if err != nil {
// Create new directories sequence
dirSeqNode = &yaml.Node{Kind: yaml.SequenceNode}
Expand Down Expand Up @@ -130,7 +130,7 @@ func (c *ConfigEditor) AddToolFile(profile, path string) error {

// Get or create the files sequence
var fileSeqNode *yaml.Node
fileSeqNode, err = c.editor.GetMapNode("files", toolsNode)
_, err = c.editor.GetMapNode("files", toolsNode)
if err != nil {
// Create new files sequence
fileSeqNode = &yaml.Node{Kind: yaml.SequenceNode}
Expand Down

0 comments on commit 9a60ef1

Please sign in to comment.