all: Apply staticcheck recommendations

This commit is contained in:
Bjørn Erik Pedersen
2019-03-24 10:11:16 +01:00
parent 3011f36c27
commit b5f39d23b8
41 changed files with 98 additions and 252 deletions

View File

@@ -37,8 +37,6 @@ type absurllexer struct {
quotes [][]byte
}
type stateFunc func(*absurllexer) stateFunc
type prefix struct {
disabled bool
b []byte
@@ -54,11 +52,6 @@ func newPrefixState() []*prefix {
}
}
type absURLMatcher struct {
match []byte
quote []byte
}
func (l *absurllexer) emit() {
l.w.Write(l.content[l.start:l.pos])
l.start = l.pos