mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
Remove unnecessary var declaration in WindowService (#133)
This commit is contained in:
parent
198ec60e69
commit
21e5e94db4
@ -64,9 +64,8 @@ func (svc *WindowService) CloseTab(ctx context.Context, uiContext wstore.UIConte
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("error getting workspace: %w", err)
|
return nil, fmt.Errorf("error getting workspace: %w", err)
|
||||||
}
|
}
|
||||||
var newActiveTabId string
|
|
||||||
if len(ws.TabIds) > 0 {
|
if len(ws.TabIds) > 0 {
|
||||||
newActiveTabId = ws.TabIds[0]
|
newActiveTabId := ws.TabIds[0]
|
||||||
wstore.SetActiveTab(ctx, uiContext.WindowId, newActiveTabId)
|
wstore.SetActiveTab(ctx, uiContext.WindowId, newActiveTabId)
|
||||||
} else {
|
} else {
|
||||||
eventbus.SendEventToElectron(eventbus.WSEventType{
|
eventbus.SendEventToElectron(eventbus.WSEventType{
|
||||||
|
Loading…
Reference in New Issue
Block a user