diff --git a/wetb/utils/cluster_tools/ssh_client.py b/wetb/utils/cluster_tools/ssh_client.py
index 786437cf30de22e951caa201416bcbd0a30d70ef..015d75cd0def937bd5f5d214d6809882e666f690 100644
--- a/wetb/utils/cluster_tools/ssh_client.py
+++ b/wetb/utils/cluster_tools/ssh_client.py
@@ -158,11 +158,7 @@ class SSHClient(object):
         cwd = os.path.join(cwd, os.path.split(filepattern)[0]).replace("\\", "/")
         filepattern = os.path.split(filepattern)[1]
         _, out, _ = self.execute(r'find %s -maxdepth 1 -type f -name "%s"' % (cwd, filepattern))
-        files = []
-        for file in out.strip().split("\n"):
-            if file != "":
-                files.append(file.strip())
-        return files
+        return [file for file in out.strip().split("\n") if file != ""]
 
 
 class SharedSSHClient(SSHClient):