Add ineffassign linter.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin
2017-05-02 16:22:13 -04:00
parent 08af0f28c5
commit b86533c479
5 changed files with 14 additions and 13 deletions

View File

@ -99,13 +99,10 @@ func (c *historyContext) CreatedBy() string {
}
func (c *historyContext) Size() string {
size := ""
if c.human {
size = units.HumanSizeWithPrecision(float64(c.h.Size), 3)
} else {
size = strconv.FormatInt(c.h.Size, 10)
return units.HumanSizeWithPrecision(float64(c.h.Size), 3)
}
return size
return strconv.FormatInt(c.h.Size, 10)
}
func (c *historyContext) Comment() string {