Redundant code. The if/else block makes more sense than the equivalent in two separate if's.

This commit is contained in:
William King 2013-05-25 07:46:47 -07:00
parent 938699d0b6
commit 7be8184b2a
1 changed files with 1 additions and 4 deletions

View File

@ -25,6 +25,7 @@
*
* Michael Jerris <mike@jerris.com>
* Eliot Gable <egable@gmail.com>
* William King <william.king@quentustech.com>
*
* switch_apr.c -- apr wrappers and extensions
*
@ -597,10 +598,6 @@ SWITCH_DECLARE(const char *) switch_dir_next_file(switch_dir_t *thedir, char *bu
name = thedir->finfo.name;
}
if (!name) {
continue;
}
if (name) {
switch_copy_string(buf, name, len);
fname = buf;