mirror of
https://github.com/javalsai/lidm.git
synced 2025-08-31 18:38:00 +02:00
lint: fix code for clang-tidy
This commit is contained in:
@@ -10,7 +10,7 @@ char* trim_str(char* str) {
|
||||
while (*str == ' ' || *str == '\t')
|
||||
str++;
|
||||
|
||||
size_t i = strlen(str);
|
||||
size_t i = strlen(str); // NOLINT(readability-identifier-length)
|
||||
while (i > 0) {
|
||||
if (str[i - 1] != ' ' && str[i - 1] != '\t' && str[i - 1] != '\n') break;
|
||||
i--;
|
||||
|
Reference in New Issue
Block a user