Remove unnecessary use of fmt.Sprintf

Fixes the following staticcheck error:

```
 ##[error]runtime/ui/view/layer.go:304:17: S1039: unnecessary use of fmt.Sprintf (gosimple)
			headerStr += fmt.Sprintf("\nLayer")
			             ^
```
This commit is contained in:
Tobias Klauser 2020-03-26 10:46:12 +01:00
parent c6bb2372a8
commit 915e5ba8ab

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