mirror of
				https://github.com/golang/go.git
				synced 2025-10-31 00:30:57 +00:00 
			
		
		
		
	all: remove now-unnecessary unreachable panics
Take advantage of the new terminating statement rule. R=golang-dev, r, gri CC=golang-dev https://golang.org/cl/7712044
This commit is contained in:
		
							parent
							
								
									5f91a62a3c
								
							
						
					
					
						commit
						e15c0ac693
					
				
					 32 changed files with 1 additions and 39 deletions
				
			
		|  | @ -723,7 +723,6 @@ func (w *Walker) varValueType(vi interface{}) (string, error) { | |||
| 	default: | ||||
| 		return "", fmt.Errorf("unknown const value type %T", vi) | ||||
| 	} | ||||
| 	panic("unreachable") | ||||
| } | ||||
| 
 | ||||
| // resolveName finds a top-level node named name and returns the node | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Brad Fitzpatrick
						Brad Fitzpatrick