mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-30 18:17:55 +00:00 
			
		
		
		
	cleanup unused code and fix t.Fatal usage in goroutine in testing (#11694)
This commit is contained in:
		| @@ -71,7 +71,7 @@ func (c *TokenCapabilitiesCommand) Run(args []string) int { | ||||
| 	args = f.Args() | ||||
| 	switch len(args) { | ||||
| 	case 0: | ||||
| 		c.UI.Error(fmt.Sprintf("Not enough arguments (expected 1-2, got 0)")) | ||||
| 		c.UI.Error("Not enough arguments (expected 1-2, got 0)") | ||||
| 		return 1 | ||||
| 	case 1: | ||||
| 		path = args[0] | ||||
| @@ -99,7 +99,7 @@ func (c *TokenCapabilitiesCommand) Run(args []string) int { | ||||
| 		return 2 | ||||
| 	} | ||||
| 	if capabilities == nil { | ||||
| 		c.UI.Error(fmt.Sprintf("No capabilities found")) | ||||
| 		c.UI.Error("No capabilities found") | ||||
| 		return 1 | ||||
| 	} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Mayo
					Mayo