- commit
- 040a7d3
- parent
- 5c65c99
- author
- Eric Bower
- date
- 2022-08-03 14:31:22 +0000 UTC
fix: linter
2 files changed,
+10,
-3
+4,
-1
1@@ -89,7 +89,10 @@ func pasteMiddleware(writeHandler *filehandlers.ScpUploadHandler) wish.Middlewar
2 }
3
4 if result != "" {
5- session.Write([]byte(fmt.Sprintf("%s\n", result)))
6+ _, err = session.Write([]byte(fmt.Sprintf("%s\n", result)))
7+ if err != nil {
8+ utils.ErrorHandler(session, err)
9+ }
10 return
11 }
12
+6,
-2
1@@ -89,7 +89,8 @@ func main() {
2 }
3
4 defer func() {
5- tx.Rollback()
6+ err = tx.Rollback()
7+ panic(err)
8 }()
9
10 datesFixed := []string{}
11@@ -129,6 +130,9 @@ func main() {
12 }
13 }
14
15- tx.Commit()
16+ err = tx.Commit()
17+ if err != nil {
18+ panic(err)
19+ }
20 logger.Infof("(%d) dates fixed!", len(datesFixed))
21 }