We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c625756 commit 7e0e448Copy full SHA for 7e0e448
common/paths.go
@@ -118,13 +118,7 @@ func GetDefaultToolsFolder() (string, error) {
118
119
// GetDownloadCacheFolder gets a generic cache folder for downloads.
120
func GetDownloadCacheFolder(item string) (string, error) {
121
- libFolder, err := GetDefaultArduinoFolder()
122
- if err != nil {
123
- return "", err
124
- }
125
-
126
- stagingFolder := filepath.Join(libFolder, "staging", item)
127
- return GetFolder(stagingFolder, fmt.Sprint(item, "cache"))
+ return getDefaultFolder(GetDefaultArduinoFolder, "staging", "cache")
128
}
129
130
// ExecUpdateIndex is a generic procedure to update an index file.
0 commit comments