Remove unnecessary optimization from compaction algorithm
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Fri, 30 Mar 2012 16:09:14 +0800
changeset 437 78ad5ffdac44
parent 436 06bf829179e4
child 438 8bc106bc5202
Remove unnecessary optimization from compaction algorithm

Object that just contain a @set property are already optimized to an array during expansion. Also made the processing of the @list case a bit clearer.
spec/latest/json-ld-api/index.html
--- a/spec/latest/json-ld-api/index.html	Fri Mar 30 14:40:49 2012 +0800
+++ b/spec/latest/json-ld-api/index.html	Fri Mar 30 16:09:14 2012 +0800
@@ -1348,9 +1348,7 @@
                 <a href="#value-compaction">Value Compaction</a> on <em>value</em>.</li>
               <li>Otherwise, if <em>value</em> contains only a <code>@list</code> property, and the
                 <tref>active property</tref> is subject to list coercion, the compacted <em>value</em> is the
-                result of performing this algorithm on that <em>value</em>.</li>
-              <li>Otherwise, if <em>value</em> contains only a <code>@set</code> property, the compacted
-                <em>value</em> is the value of <code>@set</code>.</li>
+                result of performing this algorithm on the <code>@list</code> property's value.</li>
               <li>Otherwise, the compacted <em>value</em> is the result of performing this algorithm on
                 <em>value</em>.</li>
             </ol>