Skip to content
Myr

Properly cast inputStatus types + mark related linter false positive

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Christian Rocha · committed by Christian Rocha · parent 3e98f55 · Browse files · 1 file+12 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+12 added−3 removed

  • other:+12 added−3 removed

1 file+12 added−3 removed

modified:tea.go+12 added-3 removed
116 unmodified lines
117// the input.118type inputStatus int119120const (121 defaultInput = iota // generally, this will be stdin122 customInput // the user explicitly set the input123 managedInput // we've opened a TTY for input121 // Generally this will be stdin.122 //123 // Lint ignore note: this is the implicit default value. While it's not124 // checked explicitly, it's presence nullifies the other possible values125 // of this type in logical statements.126 defaultInput inputStatus = iota // nolint:golint,deadcode,unused,varcheck127128 // The user explicitly set the input.129 customInput130131 // We've opened a TTY for input.132 managedInput133)134135func (i inputStatus) String() string {136 return [...]string{
433 unmodified lines