Archived
opt: optimize code struct
This commit is contained in:
1 parent
365854ccf6
commit
a06552b670
3 files changed
+5
-4
No files matched your search
@@ -391,9 +391,9 @@ int parse_circle_direction(const char *str) {
|
||||
|
||||
// 根据转换后的小写字符串返回对应的枚举值
|
||||
if (strcmp(lowerStr, "next") == 0) {
|
||||
return 1;
|
||||
return NEXT;
|
||||
} else {
|
||||
return -1;
|
||||
return PREV;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user