Skip to content

Commit

Permalink
fix typo: versionCache should be infoCache (#231)
Browse files Browse the repository at this point in the history
Signed-off-by: Xinfeng Liu <[email protected]>
  • Loading branch information
xinfengliu authored Sep 5, 2023
1 parent b9f52ee commit ba3baed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/docker_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,9 @@ func fixAPIVersion(v *dockertypes.Version) {
}
}

// getDockerInfo gets the version information from docker.
// getDockerInfo gets the information of "docker info".
func (ds *dockerService) getDockerInfo() (v *dockertypes.Info, err error) {
if ds.versionCache != nil {
if ds.infoCache != nil {
v, err = ds.getDockerInfoFromCache()
} else {
v, err = ds.client.Info()
Expand Down

0 comments on commit ba3baed

Please sign in to comment.