src/Pure/Thy/thy_syntax.scala
changeset 55783 da0513d95155
parent 55779 30fb00b5a9d3
child 55785 3086f57e48e9
--- a/src/Pure/Thy/thy_syntax.scala	Thu Feb 27 12:48:59 2014 +0100
+++ b/src/Pure/Thy/thy_syntax.scala	Thu Feb 27 14:07:04 2014 +0100
@@ -268,14 +268,9 @@
       Exn.capture {
         val name =
           Document.Node.Name(thy_load.append(node_name.master_dir, Path.explode(file_name)))
-        val blob =
-          doc_blobs.get(name) match {
-            case Some((bytes, file)) => Some((bytes.sha1_digest, file))
-            case None => None
-          }
+        val blob = doc_blobs.get(name).map(blob => ((blob.bytes.sha1_digest, blob.file)))
         (name, blob)
-      }
-    )
+      })
   }