rlp: fix staticcheck warnings (#20368)
* rlp: fix staticcheck warnings * rlp: fix ExampleDecode test
This commit is contained in:
		
				
					committed by
					
						 Péter Szilágyi
						Péter Szilágyi
					
				
			
			
				
	
			
			
			
						parent
						
							9ef90dbf30
						
					
				
				
					commit
					44b41641f8
				
			| @@ -29,12 +29,13 @@ import ( | ||||
| 	"sync" | ||||
| ) | ||||
|  | ||||
| var ( | ||||
| 	// EOL is returned when the end of the current list | ||||
| 	// has been reached during streaming. | ||||
| 	EOL = errors.New("rlp: end of list") | ||||
| //lint:ignore ST1012 EOL is not an error. | ||||
|  | ||||
| 	// Actual Errors | ||||
| // EOL is returned when the end of the current list | ||||
| // has been reached during streaming. | ||||
| var EOL = errors.New("rlp: end of list") | ||||
|  | ||||
| var ( | ||||
| 	ErrExpectedString   = errors.New("rlp: expected String or Byte") | ||||
| 	ErrExpectedList     = errors.New("rlp: expected List") | ||||
| 	ErrCanonInt         = errors.New("rlp: non-canonical integer format") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user