Skip to content

Commit dafc65a

Browse files
committed
refactor
1 parent c487a27 commit dafc65a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

internal/ccontrol/CmdArgParser.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ var (
185185
if err := ModifyPartitionAllowedOrDeniedAccounts(args[0], false, FlagDeniedAccounts); err != util.ErrorSuccess {
186186
os.Exit(err)
187187
}
188+
log.Warning("Hint: When using AllowedAccounts, DeniedAccounts will not take effect.")
188189
}
189190
},
190191
}

internal/ccontrol/ccontrol.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func formatAllowedAccounts(allowedAccounts []string) string {
112112
}
113113

114114
func formatDeniedAccounts(allowedAccounts []string, deniedAccounts []string) string {
115-
if len(allowedAccounts) != 0 || len(deniedAccounts) == 0 {
115+
if len(deniedAccounts) == 0 {
116116
return "None"
117117
}
118118

0 commit comments

Comments
 (0)