mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00:00 
			
		
		
		
	all: Apply staticcheck recommendations
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user