Skip to content

Commit

Permalink
Merge pull request #32 from jonyhy96/master
Browse files Browse the repository at this point in the history
fix strings.ReplaceAll() does't exist error while go version bellow 1.12
  • Loading branch information
jesseduffield authored Jul 1, 2019
2 parents f4f5605 + 0fe35ba commit a51bb83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/commands/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (l *Layer) GetDisplayStrings(isFocused bool) []string {
createdBy = utils.ColoredString(split[0], color.FgYellow) + " " + strings.Join(split[1:], " ")
}

createdBy = strings.ReplaceAll(createdBy, "\t", " ")
createdBy = strings.Replace(createdBy, "\t", " ", -1)

size := utils.FormatBinaryBytes(int(l.Size))
sizeColor := color.FgWhite
Expand Down

0 comments on commit a51bb83

Please sign in to comment.