add value vithh error (#1)
Co-authored-by: andrey1s <andrey@4devs.pro> Reviewed-on: #1 Co-authored-by: andrey <andrey@4devs.io> Co-committed-by: andrey <andrey@4devs.io>
This commit was merged in pull request #1.
This commit is contained in:
@@ -28,13 +28,13 @@ const (
|
||||
type Option string
|
||||
|
||||
func (o Option) Apply(action int) string {
|
||||
v := string(o)
|
||||
out := string(o)
|
||||
|
||||
switch action {
|
||||
case ActionSet:
|
||||
return v[0:1]
|
||||
return out[0:1]
|
||||
case ActionUnset:
|
||||
return v[1:]
|
||||
return out[1:]
|
||||
}
|
||||
|
||||
return ""
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"sync"
|
||||
)
|
||||
|
||||
//nolint: gochecknoglobals
|
||||
//nolint:gochecknoglobals
|
||||
var (
|
||||
styles = map[string]Style{
|
||||
"error": {Foreground: White, Background: Red},
|
||||
|
||||
Reference in New Issue
Block a user