Skip to content

Commit 8f0150b

Browse files
committed
Fix bugs in tests
1 parent 5e22ab2 commit 8f0150b

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

commands/root/root.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
package root
1919

2020
import (
21-
"fmt"
2221
"io/ioutil"
2322
"os"
2423
"path/filepath"
@@ -134,8 +133,6 @@ func initConfigs() {
134133

135134
commands.Config.Navigate("/", pwd)
136135

137-
fmt.Println(yamlConfigFile)
138-
139136
if yamlConfigFile != "" {
140137
commands.Config.ConfigFile = paths.New(yamlConfigFile)
141138
if err := commands.Config.LoadFromYAML(commands.Config.ConfigFile); err != nil {

configs/navigate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
func (c *Configuration) Navigate(root, pwd string) {
1111
relativePath, err := filepath.Rel(root, pwd)
1212
if err != nil {
13-
panic(err)
13+
return
1414
}
1515

1616
// From the root to the current folder, search for arduino-cli.yaml files

0 commit comments

Comments
 (0)