Skip to content

Commit

Permalink
gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mcDevnagh committed Feb 21, 2025
1 parent 87ebe31 commit c2fd720
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ import (
executil "github.com/zk-org/zk/internal/util/exec"
)

var Version = "dev"
var Build = "dev"
var (
Version = "dev"
Build = "dev"
)

var root struct {
Init cmd.Init `cmd group:"zk" help:"Create a new notebook in the given directory."`
Expand Down Expand Up @@ -153,7 +155,7 @@ func setupDebugMode() {
c := make(chan os.Signal)
go func() {
stacktrace := make([]byte, 8192)
for _ = range c {
for range c {
length := runtime.Stack(stacktrace, true)
fmt.Fprintf(os.Stderr, "%s\n", string(stacktrace[:length]))
os.Exit(1)
Expand Down

0 comments on commit c2fd720

Please sign in to comment.