File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -334,7 +334,9 @@ func InitAgentCmdFlags(c *cobra.Command, cfg *AgentCmdFlags) {
334334 false ,
335335 "Deprecated. No longer has an effect." ,
336336 )
337- _ = c .PersistentFlags ().MarkDeprecated ("disable-compression" , "no longer has an effect" )
337+ if err := c .PersistentFlags ().MarkDeprecated ("disable-compression" , "no longer has an effect" ); err != nil {
338+ panic (err )
339+ }
338340
339341 // This is a hidden feature flag we use to build the "Machine Hub" feature
340342 // gradually without impacting customers. Once the feature is GA, we will
@@ -345,7 +347,9 @@ func InitAgentCmdFlags(c *cobra.Command, cfg *AgentCmdFlags) {
345347 false ,
346348 "Enables the MachineHub mode. The agent will push data to CyberArk MachineHub." ,
347349 )
348- _ = c .PersistentFlags ().MarkHidden ("machine-hub" )
350+ if err := c .PersistentFlags ().MarkHidden ("machine-hub" ); err != nil {
351+ panic (err )
352+ }
349353
350354}
351355
You can’t perform that action at this time.
0 commit comments