Skip to content

Commit

Permalink
fix: Clean up source.
Browse files Browse the repository at this point in the history
This commit cleans up the source code by removing an unused method,
tidying go modules, and running gofmt.
  • Loading branch information
betterengineering committed Jul 31, 2023
1 parent 33958cb commit b1bb661
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 267 deletions.
2 changes: 1 addition & 1 deletion cmd/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func render(cmd *cobra.Command, args []string) error {
if len(split) < 2 {
return fmt.Errorf("parameters must be on form <key>=<value>, found %s", param)
}
config[split[0]] = strings.Join(split[1:len(split)], "=")
config[split[0]] = strings.Join(split[1:], "=")
}

src, err := ioutil.ReadFile(script)
Expand Down
5 changes: 2 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ require (
github.com/pkg/errors v0.9.1
github.com/qri-io/starlib v0.5.1-0.20220611014110-7fb7ff9ec804
github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e
github.com/srwiley/oksvg v0.0.0-20221011165216-be6e8873101c
github.com/srwiley/rasterx v0.0.0-20220730225603-2ab79fcdd4ef
github.com/spf13/cobra v1.7.0
github.com/spf13/viper v1.16.0
github.com/srwiley/oksvg v0.0.0-20221011165216-be6e8873101c
github.com/srwiley/rasterx v0.0.0-20220730225603-2ab79fcdd4ef
github.com/stretchr/testify v1.8.4
github.com/tidbyt/gg v0.0.0-20220808163829-95806fa1d427
github.com/tidbyt/go-libwebp v0.0.0-20220802221933-1fabc3b46601
Expand All @@ -51,7 +51,6 @@ require (
github.com/Microsoft/go-winio v0.5.2 // indirect
github.com/ProtonMail/go-crypto v0.0.0-20230518184743-7afd39499903 // indirect
github.com/PuerkitoBio/goquery v1.5.1 // indirect
github.com/ajstarks/svgo v0.0.0-20211024235047-1546f124cd8b // indirect
github.com/acomagu/bufpipe v1.0.4 // indirect
github.com/andybalholm/cascadia v1.1.0 // indirect
github.com/antchfx/xpath v1.2.4 // indirect
Expand Down
Loading

0 comments on commit b1bb661

Please sign in to comment.