File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ func Init(configPath string) {
3838
3939 // Get default data path if none was provided
4040 if configPath == "" {
41- configPath = GetDefaultArduinoDataDir ()
41+ configPath = getDefaultArduinoDataDir ()
4242 }
4343
4444 // Add paths where to search for a config file
@@ -58,7 +58,7 @@ func Init(configPath string) {
5858 // those were set through env vars or cli flags
5959 dataDir := viper .GetString ("directories.Data" )
6060 if dataDir == "" {
61- dataDir = GetDefaultArduinoDataDir ()
61+ dataDir = getDefaultArduinoDataDir ()
6262 }
6363 userDir := viper .GetString ("directories.User" )
6464 if userDir == "" {
@@ -79,8 +79,8 @@ func Init(configPath string) {
7979
8080}
8181
82- // GetDefaultArduinoDataDir returns the full path to the default arduino folder
83- func GetDefaultArduinoDataDir () string {
82+ // getDefaultArduinoDataDir returns the full path to the default arduino folder
83+ func getDefaultArduinoDataDir () string {
8484 userHomeDir , err := os .UserHomeDir ()
8585 if err != nil {
8686 feedback .Errorf ("Unable to get user home dir: %v" , err )
You can’t perform that action at this time.
0 commit comments