Skip to content

Commit 4fa8e23

Browse files
committed
Update rexm.c
1 parent 1dfff22 commit 4fa8e23

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tools/rexm/rexm.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,15 +370,13 @@ int main(int argc, char *argv[])
370370
{
371371
// Verify example exists in collection to be removed
372372
char *exColInfo = LoadFileText(exCollectionFilePath);
373-
if ((TextFindIndex(exColInfo, argv[2]) != -1) && // Example in the collection
374-
(TextFindIndex(exName, "_") != -1)) // Valid example name
373+
if (TextFindIndex(exColInfo, argv[2]) != -1) // Example in the collection
375374
{
376-
377375
strcpy(exName, argv[2]); // Register example name for removal
378376
strncpy(exCategory, exName, TextFindIndex(exName, "_"));
379377
opCode = OP_BUILD;
380378
}
381-
else LOG("WARNING: REMOVE: Example not available in the collection\n");
379+
else LOG("WARNING: BUILD: Example not available in the collection\n");
382380
UnloadFileText(exColInfo);
383381
}
384382
}

0 commit comments

Comments
 (0)