Merge two g_file_test calls into one

This commit is contained in:
Christian Dywan 2009-01-23 21:43:28 +01:00
parent c5070bfcac
commit 2083433739

View file

@ -142,8 +142,7 @@ sokoke_magic_uri (const gchar* uri,
if (g_path_is_absolute (uri))
return g_strconcat ("file://", uri, NULL);
/* Construct an absolute path if the file is relative */
if (g_file_test (uri, G_FILE_TEST_EXISTS)
&& g_file_test (uri, G_FILE_TEST_IS_REGULAR))
if (g_file_test (uri, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR))
{
current_dir = g_get_current_dir ();
result = g_strconcat ("file://", current_dir,