Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Commit

Permalink
trim leading and suffix '"
Browse files Browse the repository at this point in the history
  • Loading branch information
glorv committed Oct 13, 2020
1 parent d0e5ef6 commit fa6b183
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lightning/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ const (
)

func (t *PostOpLevel) UnmarshalText(text []byte) error {
switch strings.ToLower(string(text)) {

switch strings.ToLower(strings.Trim(string(text), `'"`)) {
case "off", "false":
*t = OpLevelOff
case "required", "true":
Expand Down

0 comments on commit fa6b183

Please sign in to comment.