Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
maaslalani committed Jun 5, 2024
1 parent c58c7ea commit 45fb415
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion field_text.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func (t *Text) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
case key.Matches(msg, t.keymap.Editor):
ext := strings.TrimPrefix(t.editorExtension, ".")
tmpFile, _ := os.CreateTemp(os.TempDir(), "*."+ext)
cmd := exec.Command(t.editorCmd, append(t.editorArgs, tmpFile.Name())...)
cmd := exec.Command(t.editorCmd, append(t.editorArgs, tmpFile.Name())...) //nolint

Check failure on line 218 in field_text.go

View workflow job for this annotation

GitHub Actions / lint-soft

directive `//nolint` is unused (nolintlint)

Check failure on line 218 in field_text.go

View workflow job for this annotation

GitHub Actions / lint-soft

directive `//nolint` is unused (nolintlint)
_ = os.WriteFile(tmpFile.Name(), []byte(t.textarea.Value()), 0600)

Check failure on line 219 in field_text.go

View workflow job for this annotation

GitHub Actions / lint-soft

Magic number: 0600, in <argument> detected (gomnd)
cmds = append(cmds, tea.ExecProcess(cmd, func(error) tea.Msg {
content, _ := os.ReadFile(tmpFile.Name())
Expand Down
2 changes: 1 addition & 1 deletion form.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ type Form struct {
keymap *KeyMap
teaOptions []tea.ProgramOption

layout Layout
layout Layout
}

// NewForm returns a form with the given groups and default themes and
Expand Down

0 comments on commit 45fb415

Please sign in to comment.