From a47d8afe1c97fcce6f9806f506887e0c39d72fff Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Mon, 31 Jul 2017 19:54:56 -0700 Subject: No need to check if a /etc/${distro}-release file exists Files are going to be opened for reading anyway. --- modules/computer/os.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/modules/computer/os.c b/modules/computer/os.c index 6accc0a3..a8886f64 100644 --- a/modules/computer/os.c +++ b/modules/computer/os.c @@ -335,9 +335,6 @@ detect_distro(void) } for (i = 0; distro_db[i].file; i++) { - if (!g_file_test(distro_db[i].file, G_FILE_TEST_EXISTS)) - continue; - if (!g_file_get_contents(distro_db[i].file, &contents, NULL, NULL)) continue; -- cgit v1.2.3