lint: remove redundant returns (S1023)
Signed-off-by: Moritz Poldrack <moritz@poldrack.dev> Acked-by: Robin Jarry <robin@jarry.cc>
This commit is contained in:
parent
ea2ac83a4d
commit
77a00de741
4 changed files with 0 additions and 5 deletions
|
@ -139,7 +139,6 @@ func (ImportMbox) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
case "Yes":
|
case "Yes":
|
||||||
go importFolder()
|
go importFolder()
|
||||||
}
|
}
|
||||||
return
|
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
aerc.AddDialog(confirm)
|
aerc.AddDialog(confirm)
|
||||||
|
|
|
@ -131,7 +131,6 @@ func (Recall) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
deleteMessage()
|
deleteMessage()
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
return
|
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
aerc.AddDialog(confirm)
|
aerc.AddDialog(confirm)
|
||||||
|
|
|
@ -105,7 +105,6 @@ func (Unsubscribe) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
aerc.PushError("Unsubscribe: selected method not found")
|
aerc.PushError("Unsubscribe: selected method not found")
|
||||||
return
|
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
aerc.AddDialog(dialog)
|
aerc.AddDialog(dialog)
|
||||||
|
@ -190,7 +189,6 @@ func unsubscribeHTTP(aerc *widgets.Aerc, u *url.URL) error {
|
||||||
default:
|
default:
|
||||||
aerc.PushError("Unsubscribe: link will not be opened")
|
aerc.PushError("Unsubscribe: link will not be opened")
|
||||||
}
|
}
|
||||||
return
|
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
aerc.AddDialog(confirm)
|
aerc.AddDialog(confirm)
|
||||||
|
|
|
@ -119,7 +119,6 @@ func newTCPConn(addr string, timeout time.Duration) (*net.TCPConn, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
done <- tcpConn{newConn, nil}
|
done <- tcpConn{newConn, nil}
|
||||||
return
|
|
||||||
}()
|
}()
|
||||||
|
|
||||||
select {
|
select {
|
||||||
|
|
Loading…
Reference in a new issue