@@ -357,12 +357,12 @@ func (c *LimitSetPlanCompletion) CompletionFunc(cmd *cobra.Command, args []strin
357357 }
358358 }
359359 return results , cobra .ShellCompDirectiveNoFileComp
360- } else {
361- ptsSetArgsCompletion := PtsSetArgsCompletion {
362- PtsCompletion : & PtsCompletion {AppID : c .AppID , ArgsLen : - 1 , ConfigFile : c .ConfigFile },
363- }
364- return ptsSetArgsCompletion .CompletionFunc (cmd , args , toComplete )
365360 }
361+ ptsSetArgsCompletion := PtsSetArgsCompletion {
362+ PtsCompletion : & PtsCompletion {AppID : c .AppID , ArgsLen : - 1 , ConfigFile : c .ConfigFile },
363+ }
364+ return ptsSetArgsCompletion .CompletionFunc (cmd , args , toComplete )
365+
366366}
367367
368368type UserPermsCompletion struct {
@@ -435,12 +435,11 @@ func (c *PermUpdateCompletion) CompletionFunc(cmd *cobra.Command, args []string,
435435 if len (args ) == 0 {
436436 permUsernameCompletion := PermUsernameCompletion {AppID : c .AppID , ArgsLen : 0 , ConfigFile : c .ConfigFile }
437437 return permUsernameCompletion .CompletionFunc (cmd , args , toComplete )
438- } else {
439- userPermsArgsCompletion := UserPermsArgsCompletion {
440- UserPermsCompletion : & UserPermsCompletion {ConfigFile : c .ConfigFile },
441- }
442- return userPermsArgsCompletion .CompletionFunc (cmd , args , toComplete )
443438 }
439+ userPermsArgsCompletion := UserPermsArgsCompletion {
440+ UserPermsCompletion : & UserPermsCompletion {ConfigFile : c .ConfigFile },
441+ }
442+ return userPermsArgsCompletion .CompletionFunc (cmd , args , toComplete )
444443}
445444
446445type PsCompletion struct {
@@ -823,12 +822,11 @@ func (c *VolumesMountCompletion) CompletionFunc(cmd *cobra.Command, args []strin
823822 if len (args ) == 0 {
824823 volumeCompletion := VolumeCompletion {AppID : c .AppID , ArgsLen : 0 , ConfigFile : c .ConfigFile }
825824 return volumeCompletion .CompletionFunc (cmd , args , toComplete )
826- } else {
827- ptsSetArgsCompletion := PtsSetArgsCompletion {
828- PtsCompletion : & PtsCompletion {AppID : c .AppID , ArgsLen : - 1 , ConfigFile : c .ConfigFile },
829- }
830- return ptsSetArgsCompletion .CompletionFunc (cmd , args , toComplete )
831825 }
826+ ptsSetArgsCompletion := PtsSetArgsCompletion {
827+ PtsCompletion : & PtsCompletion {AppID : c .AppID , ArgsLen : - 1 , ConfigFile : c .ConfigFile },
828+ }
829+ return ptsSetArgsCompletion .CompletionFunc (cmd , args , toComplete )
832830}
833831
834832type VolumesUnmountCompletion struct {
0 commit comments