Skip to content

Commit 565fe69

Browse files
committed
fixes go lint issues
1 parent 80bbe7a commit 565fe69

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

cmd/checkout/config.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ package main
33
import (
44
"encoding/json"
55
"fmt"
6-
"github.com/charmbracelet/bubbles/list"
76
"os"
87
"path/filepath"
8+
9+
"github.com/charmbracelet/bubbles/list"
910
)
1011

1112
type branchType struct {

cmd/checkout/main.go

+4-7
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ package main
22

33
import (
44
"fmt"
5+
"os"
6+
57
"github.com/charmbracelet/bubbles/list"
68
"github.com/charmbracelet/bubbles/textinput"
79
tea "github.com/charmbracelet/bubbletea"
810
"github.com/charmbracelet/lipgloss"
911
"github.com/mrados7/go-git-commands/cmd/git"
10-
"os"
1112
)
1213

1314
const (
@@ -59,17 +60,13 @@ func initialModel(branchTypes []list.Item, jiraBoards []list.Item) model {
5960
m.jiraBoardList.SetShowStatusBar(false)
6061

6162
// ---- ticketIdInput input -----
62-
var ticketIdInput textinput.Model
63-
64-
ticketIdInput = textinput.New()
63+
ticketIdInput := textinput.New()
6564
ticketIdInput.Focus()
6665

6766
m.ticketIdInput = ticketIdInput
6867

6968
// ---- branchName input -----
70-
var branchNameInput textinput.Model
71-
72-
branchNameInput = textinput.New()
69+
branchNameInput := textinput.New()
7370
branchNameInput.Placeholder = "short-message"
7471

7572
m.branchNameInput = branchNameInput

cmd/commit/main.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ package main
22

33
import (
44
"fmt"
5-
"github.com/charmbracelet/lipgloss"
6-
"github.com/mrados7/go-git-commands/cmd/git"
75
"log"
86
"os"
97
"os/exec"
108
"strings"
119

10+
"github.com/charmbracelet/lipgloss"
11+
"github.com/mrados7/go-git-commands/cmd/git"
12+
1213
"github.com/charmbracelet/bubbles/textinput"
1314
tea "github.com/charmbracelet/bubbletea"
1415
)

0 commit comments

Comments
 (0)