This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository legacy-imlib2.

View the commit online.

commit ca2aed7ad6ef5183265aa58d035d5316abb0d0a3
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Sat Dec 14 08:16:05 2024 +0100

    image: Trivial simplification
---
 src/lib/image.c | 16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)

diff --git a/src/lib/image.c b/src/lib/image.c
index d42195c..9fcb389 100644
--- a/src/lib/image.c
+++ b/src/lib/image.c
@@ -422,17 +422,13 @@ __imlib_LoadImageWrapper(const ImlibLoader *l, ImlibImage *im, int load_data)
     unsigned int    t0 = __imlib_time_us();
 #endif
 
-    if (l->module->load)
-    {
-        if (!im->format)
-            im->format = strdup(l->name);
-
-        rc = l->module->load(im, load_data);
-    }
-    else
-    {
+    if (!l->module->load)
         return LOAD_FAIL;
-    }
+
+    if (!im->format)
+        im->format = strdup(l->name);
+
+    rc = l->module->load(im, load_data);
 
     DP("%s: %-4s: %s: Elapsed time: %.3f ms\n", __func__,
        l->name, im->fi->name, 1e-3 * (__imlib_time_us() - t0));

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to