Skip to content

Commit

Permalink
Remove unnecessary use of fmt.Sprintf
Browse files Browse the repository at this point in the history
Fixes the following staticcheck error:

```
 ##[error]runtime/ui/view/layer.go:304:17: S1039: unnecessary use of fmt.Sprintf (gosimple)
			headerStr += fmt.Sprintf("\nLayer")
			             ^
```
  • Loading branch information
tklauser committed Mar 26, 2020
1 parent c6bb237 commit 915e5ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/ui/view/layer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 915e5ba

Please sign in to comment.