Skip to content

Commit 206d06f

Browse files
gofumpt
Signed-off-by: Kartikay <[email protected]>
1 parent deede2e commit 206d06f

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

magefiles/magefile.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
package main
55

66
import (
7+
"os"
8+
79
"github.com/authzed/zed/internal/cmd"
810
"github.com/jzelinskie/cobrautil/v2/cobrazerolog"
911
"github.com/magefile/mage/mg"
10-
"os"
1112
)
1213

1314
type Gen mg.Namespace

magefiles/util.go

-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ func (s byName) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
2323
func (s byName) Less(i, j int) bool { return s[i].Name() < s[j].Name() }
2424

2525
func GenCustomMarkdownTree(cmd *cobra.Command, dir string) error {
26-
2726
basename := strings.ReplaceAll(cmd.CommandPath(), " ", "_") + ".md"
2827
filename := filepath.Join(dir, basename)
2928

@@ -34,7 +33,6 @@ func GenCustomMarkdownTree(cmd *cobra.Command, dir string) error {
3433
defer f.Close()
3534

3635
return genMarkdownTreeCustom(cmd, f)
37-
3836
}
3937

4038
func genMarkdownTreeCustom(cmd *cobra.Command, f *os.File) error {
@@ -132,7 +130,6 @@ func hasSeeAlso(cmd *cobra.Command) bool {
132130
}
133131

134132
func printOptions(buf *bytes.Buffer, cmd *cobra.Command) error {
135-
136133
flags := cmd.NonInheritedFlags()
137134
flags.SetOutput(buf)
138135

@@ -152,5 +149,4 @@ func printOptions(buf *bytes.Buffer, cmd *cobra.Command) error {
152149
}
153150

154151
return nil
155-
156152
}

0 commit comments

Comments
 (0)