changeset 29894:4c4552f547b3

Use early return instead of block over whole function.
author reimar
date Fri, 20 Nov 2009 10:24:31 +0000
parents 5eef60a98c6f
children 3ea2508a43ce
files subreader.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/subreader.c	Fri Nov 20 10:22:57 2009 +0000
+++ b/subreader.c	Fri Nov 20 10:24:31 2009 +0000
@@ -1157,7 +1157,8 @@
   int l=sub->lines;
   int char_set_num;
   fribidi_boolean log2vis;
-  if(flip_hebrew) { // Please fix the indentation someday
+  if (!flip_hebrew)
+    return sub;
   fribidi_set_mirroring(1);
   fribidi_set_reorder_nsm(0);
 
@@ -1197,7 +1198,6 @@
       free (sub->text[--l]);
     return ERR;
   }
-  }
   return sub;
 }