File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -493,7 +493,7 @@ func validateGenPrivKeyJSONFlags(cfg *genPrivKeyJSONConfig) error {
493493	return  nil 
494494}
495495
496- func  validateEncryptPrivKeyFlags (cfg  * baseConfig ) error  {
496+ func  validateEncryptFlags (cfg  * baseConfig ) error  {
497497	if  cmtos .FileExists (cfg .EncPrivKeyFile ()) {
498498		return  errors .New ("already encrypted private key exists" )
499499	}
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ func newKeyCmds() *cobra.Command {
3434	cmd .AddCommand (
3535		newKeyConvertCmd (),
3636		newKeyGenPrivKeyJSONCmd (),
37- 		newKeyEncryptPrivKeyCmd (),
37+ 		newKeyEncryptCmd (),
3838	)
3939
4040	return  cmd 
@@ -81,7 +81,7 @@ func newKeyGenPrivKeyJSONCmd() *cobra.Command {
8181	return  cmd 
8282}
8383
84- func  newKeyEncryptPrivKeyCmd () * cobra.Command  {
84+ func  newKeyEncryptCmd () * cobra.Command  {
8585	var  cfg  baseConfig 
8686
8787	cmd  :=  & cobra.Command {
@@ -93,7 +93,7 @@ func newKeyEncryptPrivKeyCmd() *cobra.Command {
9393		},
9494		RunE : runValidatorCommand (
9595			func (_  * cobra.Command ) error  {
96- 				return  validateEncryptPrivKeyFlags (& cfg )
96+ 				return  validateEncryptFlags (& cfg )
9797			},
9898			func (_  context.Context ) error  { return  encryptPrivKey (cfg ) },
9999		),
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments