diff options
| author | Shulhan <m.shulhan@gmail.com> | 2020-03-26 00:16:52 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2020-03-26 00:16:52 +0700 |
| commit | b0fa5a477156f33559ea8598632ae26dff79345b (patch) | |
| tree | 9a7d4b69f05852af673569bc77ac736b9b0a1ff2 /lib/parser | |
| parent | c5729b4cac0acd5448abf4e4e64d37081f7f8c87 (diff) | |
| download | pakakeh.go-b0fa5a477156f33559ea8598632ae26dff79345b.tar.xz | |
all: fix and suppress linter warnings
Diffstat (limited to 'lib/parser')
| -rw-r--r-- | lib/parser/parser.go | 3 | ||||
| -rw-r--r-- | lib/parser/parser_test.go | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/parser/parser.go b/lib/parser/parser.go index a29811cf..5f30d0f3 100644 --- a/lib/parser/parser.go +++ b/lib/parser/parser.go @@ -233,7 +233,6 @@ func (p *Parser) TokenEscaped(esc rune) (string, rune) { p.d = 0 p.x = len(p.v) return string(p.token), p.d - } // @@ -261,7 +260,7 @@ func (p *Parser) ReadEnclosed(open, closed rune) (string, rune) { p.d = 0 p.x = len(p.v) - return string(p.v), 0 + return p.v, 0 } // diff --git a/lib/parser/parser_test.go b/lib/parser/parser_test.go index 71d0a9e5..7c826a81 100644 --- a/lib/parser/parser_test.go +++ b/lib/parser/parser_test.go @@ -244,8 +244,8 @@ func TestParser_SkipHorizontalSpaces(t *testing.T) { cases := []struct { desc string content string - expRune rune expToken string + expRune rune expDelim rune }{{ desc: "With empty content", |
