mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-18 06:59:53 -05:00
opt: optimize code struct
This commit is contained in:
parent
a220a3060f
commit
32476f366b
3 changed files with 5 additions and 4 deletions
|
|
@ -374,9 +374,9 @@ int parse_circle_direction(const char *str) {
|
|||
|
||||
// 根据转换后的小写字符串返回对应的枚举值
|
||||
if (strcmp(lowerStr, "next") == 0) {
|
||||
return 1;
|
||||
return NEXT;
|
||||
} else {
|
||||
return -1;
|
||||
return PREV;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue