summaryrefslogtreecommitdiff
path: root/source/Interpreter/CommandObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Interpreter/CommandObject.cpp')
-rw-r--r--source/Interpreter/CommandObject.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/source/Interpreter/CommandObject.cpp b/source/Interpreter/CommandObject.cpp
index 324b0b511220..05c540b37c62 100644
--- a/source/Interpreter/CommandObject.cpp
+++ b/source/Interpreter/CommandObject.cpp
@@ -409,15 +409,12 @@ const char *CommandObject::GetArgumentName(CommandArgumentType arg_type) {
}
bool CommandObject::IsPairType(ArgumentRepetitionType arg_repeat_type) {
- if ((arg_repeat_type == eArgRepeatPairPlain) ||
- (arg_repeat_type == eArgRepeatPairOptional) ||
- (arg_repeat_type == eArgRepeatPairPlus) ||
- (arg_repeat_type == eArgRepeatPairStar) ||
- (arg_repeat_type == eArgRepeatPairRange) ||
- (arg_repeat_type == eArgRepeatPairRangeOptional))
- return true;
-
- return false;
+ return (arg_repeat_type == eArgRepeatPairPlain) ||
+ (arg_repeat_type == eArgRepeatPairOptional) ||
+ (arg_repeat_type == eArgRepeatPairPlus) ||
+ (arg_repeat_type == eArgRepeatPairStar) ||
+ (arg_repeat_type == eArgRepeatPairRange) ||
+ (arg_repeat_type == eArgRepeatPairRangeOptional);
}
static CommandObject::CommandArgumentEntry