Skip to content

Commit 80bbe7a

Browse files
committed
fix golang lint errors
1 parent 1a85d5f commit 80bbe7a

File tree

4 files changed

+31
-19
lines changed

4 files changed

+31
-19
lines changed

.git-commands.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"boards": [
3+
{
4+
"name": "EPD",
5+
"description": "Company Solution Team Board"
6+
},
7+
{
8+
"name": "IB",
9+
"description": "Interim Billing Board"
10+
}
11+
],
12+
"branchTypes": [
13+
{
14+
"type": "FEAT",
15+
"description": "A new feature"
16+
},
17+
{
18+
"type": "FIX",
19+
"description": "A bug fix"
20+
},
21+
{
22+
"type": "DOCS",
23+
"description": "Documentation onlyf changes"
24+
}
25+
]
26+
}

cmd/checkout/main.go

+4-11
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ func (p branchType) Description() string { return p.D }
2424
func (p branchType) FilterValue() string { return p.T }
2525

2626
var (
27-
focusedStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#6FD0FB"))
28-
2927
stepTitleStyle = lipgloss.NewStyle().Background(lipgloss.Color("#DA8BFF")).Foreground(lipgloss.Color("#000000")).Padding(0, 1)
3028
listTitleBarStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#000000")).Padding(1, 0)
3129
docStyle = lipgloss.NewStyle().Margin(1, 2)
@@ -34,15 +32,10 @@ var (
3432
)
3533

3634
type model struct {
37-
branchType string
38-
ticketIdInput textinput.Model
39-
branchNameInput textinput.Model
40-
step int
41-
placeholderBranchName string
42-
// new model
43-
branchTypeList list.Model
44-
jiraBoardList list.Model
45-
35+
ticketIdInput textinput.Model
36+
branchNameInput textinput.Model
37+
branchTypeList list.Model
38+
jiraBoardList list.Model
4639
selectedBranchType string
4740
selectedJiraBoard string
4841
shouldEnterTicketId bool

cmd/commit/main.go

-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ var (
2323
blurredButton = fmt.Sprintf("[ %s ]", blurredStyle.Render("Commit"))
2424
)
2525

26-
type (
27-
errMsg error
28-
)
29-
3026
type model struct {
3127
focusInputIndex int
3228
inputs []textinput.Model

cmd/git/git.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ func CheckIfGitRepo() bool {
1818
cmd := exec.Command("git", "rev-parse", "--is-inside-work-tree")
1919
cmd.Stderr = os.Stderr
2020
err := cmd.Run()
21-
if err != nil {
22-
return false
23-
}
24-
return true
21+
return err == nil
2522
}
2623

2724
func GetStagedFiles() []string {

0 commit comments

Comments
 (0)