mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-11 02:02:01 -07:00
Code cleanup (#1640)
- Replaced time.Now().Sub() with time.Since() - Replaced unnecessary string/byte slice conversions - Removed obsolete return and value assignment in range loop
This commit is contained in:
committed by
Junegunn Choi
parent
7322504ad0
commit
a1260feeed
@@ -1532,7 +1532,7 @@ func (t *Terminal) Loop() {
|
||||
cmd.Wait()
|
||||
finishChan <- true
|
||||
if out.Len() > 0 || !<-updateChan {
|
||||
t.reqBox.Set(reqPreviewDisplay, string(out.Bytes()))
|
||||
t.reqBox.Set(reqPreviewDisplay, out.String())
|
||||
}
|
||||
} else {
|
||||
t.reqBox.Set(reqPreviewDisplay, "")
|
||||
|
Reference in New Issue
Block a user