Skip to content

Commit 7bf021c

Browse files
gofumpt
1 parent 94b8e22 commit 7bf021c

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

cmd/login.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ func cors(next http.Handler) http.Handler {
148148
next.ServeHTTP(w, r)
149149
})
150150
}
151+
151152
func startHTTPServer(inputChan chan string) {
152153
handleSubmit := func(w http.ResponseWriter, r *http.Request) {
153154
code, err := io.ReadAll(r.Body)

render/render.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ import (
1818
"github.com/spf13/viper"
1919
)
2020

21-
var green lipgloss.Style
22-
var red lipgloss.Style
23-
var gray lipgloss.Style
24-
var borderBox = lipgloss.NewStyle().Border(lipgloss.RoundedBorder())
21+
var (
22+
green lipgloss.Style
23+
red lipgloss.Style
24+
gray lipgloss.Style
25+
borderBox = lipgloss.NewStyle().Border(lipgloss.RoundedBorder())
26+
)
2527

2628
type testModel struct {
2729
text string

version/version.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ import (
1313
"golang.org/x/mod/semver"
1414
)
1515

16-
const repoOwner = "bootdotdev"
17-
const repoName = "bootdev"
16+
const (
17+
repoOwner = "bootdotdev"
18+
repoName = "bootdev"
19+
)
1820

1921
type VersionInfo struct {
2022
CurrentVersion string

0 commit comments

Comments
 (0)