mirror of
https://github.com/wagoodman/dive
synced 2026-03-14 14:25:50 +01:00
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:
parent
c6bb2372a8
commit
915e5ba8ab
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue