@@ -483,7 +483,7 @@ func parseHostConfig(server string, baseDir string, config hostFileConfig) (host
 | 
			
		||||
func getSortedHosts(root *toml.Tree) ([]string, error) {
 | 
			
		||||
	iter, ok := root.Get("host").(*toml.Tree)
 | 
			
		||||
	if !ok {
 | 
			
		||||
		return nil, errors.Errorf("invalid `host` tree")
 | 
			
		||||
		return nil, errors.New("invalid `host` tree")
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	list := append([]string{}, iter.Keys()...)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user