summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ws.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ws.go b/ws.go
index 6c5dc36..d2572a4 100644
--- a/ws.go
+++ b/ws.go
@@ -360,9 +360,9 @@ func handleConn(
if err != nil {
return fmt.Errorf("error reaffirming course choice: %w", err)
}
- } else {
- return protocolError(ctx, c, "Database error while inserting course choice")
+ return nil
}
+ return protocolError(ctx, c, "Database error while inserting course choice")
}
ok := func() bool {