subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bre...@apache.org
Subject svn commit: r1499498 - /subversion/trunk/subversion/libsvn_subr/config_file.c
Date Wed, 03 Jul 2013 17:50:46 GMT
Author: breser
Date: Wed Jul  3 17:50:46 2013
New Revision: 1499498

URL: http://svn.apache.org/r1499498
Log:
Clean up some style nits in skip_bom().

* subversion/libsvn_subr/config_file.c
  (skip_bom): Remove some unnecessary syntax that I thought I'd
    removed before committing r1499496.

Modified:
    subversion/trunk/subversion/libsvn_subr/config_file.c

Modified: subversion/trunk/subversion/libsvn_subr/config_file.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/config_file.c?rev=1499498&r1=1499497&r2=1499498&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/config_file.c (original)
+++ subversion/trunk/subversion/libsvn_subr/config_file.c Wed Jul  3 17:50:46 2013
@@ -205,20 +205,13 @@ skip_bom(parse_context_t *ctx)
        * safely be assumed as long as we only try to use skip_bom() at the
        * start of the stream and the buffer is longer than 3 characters. */
       SVN_ERR_ASSERT(ctx->buffer_size > ctx->buffer_pos + 1);
-      if (buf[ctx->buffer_pos] == 0xBB &&
-          buf[ctx->buffer_pos + 1] == 0xBF)
-        {
-          ctx->buffer_pos += 2;
-        }
+      if (buf[ctx->buffer_pos] == 0xBB && buf[ctx->buffer_pos + 1] == 0xBF)
+        ctx->buffer_pos += 2;
       else
-        {
-          SVN_ERR(parser_ungetc(ctx, ch));
-        }
+        SVN_ERR(parser_ungetc(ctx, ch));
     }
   else
-    {
-      SVN_ERR(parser_ungetc(ctx, ch));
-    }
+    SVN_ERR(parser_ungetc(ctx, ch));
 
   return SVN_NO_ERROR;
 }



Mime
View raw message