Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gofumpt
Browse files Browse the repository at this point in the history
Signed-off-by: Kartikay <kartikay_2101ce32@iitp.ac.in>
kartikaysaxena committed Jan 28, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent deede2e commit 206d06f
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 2 additions & 1 deletion magefiles/magefile.go
Original file line number Diff line number Diff line change
@@ -4,10 +4,11 @@
package main

import (
"os"

"github.com/authzed/zed/internal/cmd"
"github.com/jzelinskie/cobrautil/v2/cobrazerolog"
"github.com/magefile/mage/mg"
"os"
)

type Gen mg.Namespace
4 changes: 0 additions & 4 deletions magefiles/util.go
Original file line number Diff line number Diff line change
@@ -23,7 +23,6 @@ func (s byName) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
func (s byName) Less(i, j int) bool { return s[i].Name() < s[j].Name() }

func GenCustomMarkdownTree(cmd *cobra.Command, dir string) error {

basename := strings.ReplaceAll(cmd.CommandPath(), " ", "_") + ".md"
filename := filepath.Join(dir, basename)

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

return genMarkdownTreeCustom(cmd, f)

}

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

func printOptions(buf *bytes.Buffer, cmd *cobra.Command) error {

flags := cmd.NonInheritedFlags()
flags.SetOutput(buf)

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

return nil

}

0 comments on commit 206d06f

Please sign in to comment.