mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-10-31 01:05:08 +03:00 
			
		
		
		
	Small tweaks/clean up
This commit is contained in:
		
							parent
							
								
									45b106168e
								
							
						
					
					
						commit
						8ea3070a02
					
				
					 2 changed files with 6 additions and 7 deletions
				
			
		|  | @ -112,7 +112,6 @@ func generateConfig(isAutoconf bool) *nodeConfig { | |||
| } | ||||
| 
 | ||||
| func doGenconf() string { | ||||
| 
 | ||||
| 	cfg := generateConfig(false) | ||||
| 	bs, err := hjson.Marshal(cfg) | ||||
| 	if err != nil { | ||||
|  | @ -239,8 +238,8 @@ func main() { | |||
| 		cfg = generateConfig(false) | ||||
| 		var dat map[string]interface{} | ||||
| 		if err := hjson.Unmarshal(config, &dat); err != nil { | ||||
|       panic(err) | ||||
|     } | ||||
| 			panic(err) | ||||
| 		} | ||||
| 		if err = mapstructure.Decode(dat, &cfg); err != nil { | ||||
| 			panic(err) | ||||
| 		} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Neil Alexander
						Neil Alexander