mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2026-04-25 08:27:04 +08:00
fix a bunch of code quality issues detected by Codacy
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
@@ -104,10 +104,10 @@ func (d *UserDevice) handleUserAPI() {
|
||||
if err != nil {
|
||||
if errors.Is(err, net.ErrClosed) {
|
||||
return
|
||||
} else {
|
||||
d.logger.Error("Failed to accept new user api connection", zap.Error(err))
|
||||
continue
|
||||
}
|
||||
|
||||
d.logger.Error("Failed to accept new user api connection", zap.Error(err))
|
||||
continue
|
||||
} else if d.device == nil {
|
||||
d.logger.Warn("Dropping user api connection as device is not ready yet")
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user