Skip to content

Commit ebb93a9

Browse files
committed
Fix code formatting
1 parent 1d7da97 commit ebb93a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ package main
22

33
import (
44
"context"
5+
"fmt"
56
"github.com/robinbraemer/event"
67
"go.minekube.com/common/minecraft/color"
78
"go.minekube.com/common/minecraft/component"
89
"go.minekube.com/gate/cmd/gate"
910
"go.minekube.com/gate/pkg/edition/java/proxy"
1011
"mcauth/codes"
11-
"strconv"
1212
)
1313

1414
func main() {
@@ -44,7 +44,7 @@ func onLogin(e *proxy.PostLoginEvent) {
4444
Content: "Your one time verification code:\n\n",
4545
Extra: []component.Component{
4646
&component.Text{
47-
Content: strconv.Itoa(code),
47+
Content: fmt.Sprintf("%06d", code),
4848
S: component.Style{
4949
Bold: component.True,
5050
Underlined: component.True,

0 commit comments

Comments
 (0)