aboutsummaryrefslogtreecommitdiff
path: root/kernel/fast_typeops.ml
diff options
context:
space:
mode:
authorMatej Kosik2016-02-15 11:55:43 +0100
committerMatej Kosik2016-02-15 16:39:27 +0100
commit4f041384cb27f0d24fa14b272884b4b7f69cacbe (patch)
tree77ec4088715057e5656f0ef04bcf61395658f939 /kernel/fast_typeops.ml
parent5dfb5d5e48c86dabd17ee2167c6fd5304c788474 (diff)
CLEANUP: Simplifying the changes done in "kernel/*"
... ... ... ... ... ... ... ... ... ... ... ... ... ...
Diffstat (limited to 'kernel/fast_typeops.ml')
-rw-r--r--kernel/fast_typeops.ml3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/fast_typeops.ml b/kernel/fast_typeops.ml
index df95c93dc5..7f4ba8ecbe 100644
--- a/kernel/fast_typeops.ml
+++ b/kernel/fast_typeops.ml
@@ -74,8 +74,7 @@ let judge_of_type u =
let judge_of_relative env n =
try
let open Context.Rel.Declaration in
- let typ = get_type (lookup_rel n env) in
- lift n typ
+ env |> lookup_rel n |> get_type |> lift n
with Not_found ->
error_unbound_rel env n