Skip to content

Commit 781c0b0

Browse files
committed
Fixed linter warning...
1 parent 7bbf2a2 commit 781c0b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

commands/board/list.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ var (
5151
validVidPid = regexp.MustCompile(`0[xX][a-fA-F\d]{4}`)
5252
)
5353

54-
func cachedApiByVidPid(vid, pid string) ([]*rpc.BoardListItem, error) {
54+
func cachedAPIByVidPid(vid, pid string) ([]*rpc.BoardListItem, error) {
5555
var resp []*rpc.BoardListItem
5656

5757
cacheKey := fmt.Sprintf("cache.builder-api.v3/boards/byvid/pid/%s/%s", vid, pid)
@@ -150,7 +150,7 @@ func identifyViaCloudAPI(port *discovery.Port) ([]*rpc.BoardListItem, error) {
150150
}
151151

152152
logrus.Debug("Querying builder API for board identification...")
153-
return cachedApiByVidPid(id.Get("vid"), id.Get("pid"))
153+
return cachedAPIByVidPid(id.Get("vid"), id.Get("pid"))
154154
}
155155

156156
// identify returns a list of boards checking first the installed platforms or the Cloud API

0 commit comments

Comments
 (0)