repos / git-pr

a self-hosted git collaboration server
git clone https://github.com/picosh/git-pr.git

commit
8912dee
parent
d48a607
author
Eric Bower
date
2024-07-22 14:42:19 -0400 EDT
fix(contrib.dev): linter
1 files changed,  +3, -2
M contrib/dev/main.go
+3, -2
 1@@ -9,6 +9,7 @@ import (
 2 	"os"
 3 	"os/signal"
 4 	"path/filepath"
 5+	"syscall"
 6 	"time"
 7 
 8 	"github.com/picosh/git-pr"
 9@@ -38,7 +39,7 @@ func main() {
10 	if err != nil {
11 		panic(err)
12 	}
13-	cfgFi.WriteString(fmt.Sprintf(cfgTmpl, tmp, adminKey.public()))
14+	_, _ = cfgFi.WriteString(fmt.Sprintf(cfgTmpl, tmp, adminKey.public()))
15 	cfgFi.Close()
16 
17 	opts := &slog.HandlerOptions{
18@@ -96,7 +97,7 @@ func main() {
19 
20 	fmt.Println("time to do some testing...")
21 	ch := make(chan os.Signal, 1)
22-	signal.Notify(ch, os.Interrupt, os.Kill)
23+	signal.Notify(ch, os.Interrupt, syscall.SIGTERM)
24 	<-ch
25 }
26