update gofmt with go1.13

This commit is contained in:
David Ashpole 2019-11-18 14:46:12 -08:00
parent 10bce1cd55
commit 5879c34819
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ func new() (storage.StorageDriver, error) {
func (self *elasticStorage) containerStatsAndDefaultValues( func (self *elasticStorage) containerStatsAndDefaultValues(
cInfo *info.ContainerInfo, stats *info.ContainerStats) *detailSpec { cInfo *info.ContainerInfo, stats *info.ContainerStats) *detailSpec {
timestamp := stats.Timestamp.UnixNano() / 1E3 timestamp := stats.Timestamp.UnixNano() / 1e3
var containerName string var containerName string
if len(cInfo.ContainerReference.Aliases) > 0 { if len(cInfo.ContainerReference.Aliases) > 0 {
containerName = cInfo.ContainerReference.Aliases[0] containerName = cInfo.ContainerReference.Aliases[0]

View File

@ -66,7 +66,7 @@ func (self *redisStorage) defaultReadyToFlush() bool {
// We must add some default params (for example: MachineName,ContainerName...)because containerStats do not include them // We must add some default params (for example: MachineName,ContainerName...)because containerStats do not include them
func (self *redisStorage) containerStatsAndDefaultValues(cInfo *info.ContainerInfo, stats *info.ContainerStats) *detailSpec { func (self *redisStorage) containerStatsAndDefaultValues(cInfo *info.ContainerInfo, stats *info.ContainerStats) *detailSpec {
timestamp := stats.Timestamp.UnixNano() / 1E3 timestamp := stats.Timestamp.UnixNano() / 1e3
var containerName string var containerName string
if len(cInfo.ContainerReference.Aliases) > 0 { if len(cInfo.ContainerReference.Aliases) > 0 {
containerName = cInfo.ContainerReference.Aliases[0] containerName = cInfo.ContainerReference.Aliases[0]