Преглед на файлове

INTERNAL: tidy up some comments and layout before merging

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman преди 12 години
родител
ревизия
0b7f32e2d0
променени са 1 файла, в които са добавени 9 реда и са изтрити 12 реда
  1. 9 12
      common/remote/sockfile.cpp

+ 9 - 12
common/remote/sockfile.cpp

@@ -1348,21 +1348,18 @@ public:
         const byte *rb = (const byte *)_buf.readDirect(rest);
         bool ret = true;
         // At the last byte of the rb (rb[rest-1]) is the stream live flag
-        // 		True if the stream has more data
-        //		False at the end of stream
-        // the previous byte (rb[rest-2]) is the flag to signals there are more
-        // valid entry in this block
-        // 		True if there are valid directory entry follows this flag
-        //		False if there are no more valid entry in this block aka end of block
-        // If there are more data in the stream, the end of block flag should be remove
-        if (rest&&(rb[rest-1]!=0)) {
+        //  True if the stream has more data
+        //  False at the end of stream
+        // The previous byte (rb[rest-2]) is the flag to signal there are more
+        // valid entries in this block
+        //  True if there are valid directory entry follows this flag
+        //  False if there are no more valid entry in this block aka end of block
+        // If there is more data in the stream, the end of block flag should be removed
+        if (rest&&(rb[rest-1]!=0)) 
+        {
             rest--; // remove stream live flag
-
             if(rest && (0 == rb[rest-1]))
-            {
             	rest--; //Remove end of block flag
-            }
-
             ret = false;  // continuation
         }
         buf.append(rest,rb);