From bb0502ff4429580e363be708ff301c35479144e3 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 28 Feb 2021 18:28:21 +0900 Subject: Check gofmt in `make test` --- src/pattern.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pattern.go') diff --git a/src/pattern.go b/src/pattern.go index 56dc830f..4a7a87a6 100644 --- a/src/pattern.go +++ b/src/pattern.go @@ -337,7 +337,7 @@ func (p *Pattern) MatchItem(item *Item, withPos bool, slab *util.Slab) (*Result, func (p *Pattern) basicMatch(item *Item, withPos bool, slab *util.Slab) (Offset, int, *[]int) { var input []Token if len(p.nth) == 0 { - input = []Token{Token{text: &item.text, prefixLength: 0}} + input = []Token{{text: &item.text, prefixLength: 0}} } else { input = p.transformInput(item) } @@ -350,7 +350,7 @@ func (p *Pattern) basicMatch(item *Item, withPos bool, slab *util.Slab) (Offset, func (p *Pattern) extendedMatch(item *Item, withPos bool, slab *util.Slab) ([]Offset, int, *[]int) { var input []Token if len(p.nth) == 0 { - input = []Token{Token{text: &item.text, prefixLength: 0}} + input = []Token{{text: &item.text, prefixLength: 0}} } else { input = p.transformInput(item) } -- cgit v1.2.3