Skip to content

Commit efa2249

Browse files
committed
Simplify syntax
1 parent 600dc23 commit efa2249

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cmd/run.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,16 +1074,15 @@ var runCmd = &cobra.Command{
10741074
}
10751075

10761076
// Shutdown the server gracefully.
1077-
var signals []os.Signal
1078-
signals = append(signals,
1077+
signals := []os.Signal{
10791078
os.Interrupt,
10801079
os.Kill,
10811080
syscall.SIGTERM,
10821081
syscall.SIGABRT,
10831082
syscall.SIGQUIT,
10841083
syscall.SIGHUP,
10851084
syscall.SIGINT,
1086-
)
1085+
}
10871086
signalsCh := make(chan os.Signal, 1)
10881087
signal.Notify(signalsCh, signals...)
10891088
go func(pluginRegistry *plugin.Registry,

0 commit comments

Comments
 (0)