mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 18:48:08 +00:00 
			
		
		
		
	cleanup unused code and fix t.Fatal usage in goroutine in testing (#11694)
This commit is contained in:
		| @@ -90,11 +90,11 @@ func RawField(secret *api.Secret, field string) interface{} { | ||||
| // PrintRawField prints raw field from the secret. | ||||
| func PrintRawField(ui cli.Ui, data interface{}, field string) int { | ||||
| 	var val interface{} | ||||
| 	switch data.(type) { | ||||
| 	switch data := data.(type) { | ||||
| 	case *api.Secret: | ||||
| 		val = RawField(data.(*api.Secret), field) | ||||
| 		val = RawField(data, field) | ||||
| 	case map[string]interface{}: | ||||
| 		val = data.(map[string]interface{})[field] | ||||
| 		val = data[field] | ||||
| 	} | ||||
|  | ||||
| 	if val == nil { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Mayo
					Mayo