discomfitor pushed a commit to branch master.

http://git.enlightenment.org/apps/empc.git/commit/?id=2f8bd94ee7d280bed3321a71d9a05eaf95a5ffc8

commit 2f8bd94ee7d280bed3321a71d9a05eaf95a5ffc8
Author: zmike <michael.blumenkra...@gmail.com>
Date:   Sun Sep 6 09:28:52 2015 -0400

    simplify filesystem loader thread conditional
---
 src/modules/filesystem_loader.c | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/src/modules/filesystem_loader.c b/src/modules/filesystem_loader.c
index d616a28..fd9397e 100644
--- a/src/modules/filesystem_loader.c
+++ b/src/modules/filesystem_loader.c
@@ -115,16 +115,8 @@ fsrun(FSInfo *fsi, Ecore_Thread *eth)
         memcpy(buf, fsi->uri, MIN((unsigned int)(p - fsi->uri), sizeof(buf) - 
1));
      }
 
-   if (fsi->req->album)
-     {
-        it = eina_file_stat_ls(isdir ? fsi->uri : buf);
-        files = fsscan(it, files, EINA_TRUE);
-     }
-   else
-     {
-        it = eina_file_stat_ls(isdir ? fsi->uri : buf);
-        files = fsscan(it, files, EINA_FALSE);
-     }
+   it = eina_file_stat_ls(isdir ? fsi->uri : buf);
+   files = fsscan(it, files, !!fsi->req->album);
    eina_iterator_free(it);
    if ((!files) && (!isdir))
      {

-- 


Reply via email to