Fix linter S1039: unnecessary use of fmt.Sprintf (gosimple)

https://github.com/wagoodman/dive/runs/526866415#step:7:14
This commit is contained in:
Anatoli Babenia 2020-03-23 11:39:39 +03:00 committed by GitHub
parent 86ac01b25f
commit f5b5a42a3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -301,7 +301,7 @@ func (v *Layer) Render() error {
width, _ := g.Size()
if v.constrainedRealEstate {
headerStr := format.RenderNoHeader(width, isSelected)
headerStr += fmt.Sprintf("\nLayer")
headerStr += "\nLayer"
_, err := fmt.Fprintln(v.header, headerStr)
if err != nil {
return err