Parcourir la source

[typer] fix double check

Simon Krajewski il y a 2 ans
Parent
commit
ac59c250b4
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      src/context/common.ml

+ 1 - 2
src/context/common.ml

@@ -419,8 +419,7 @@ exception Abort of Error.error
 
 let ignore_error com =
 	let b = com.display.dms_error_policy = EPIgnore in
-	if b then
-		if b then com.has_error <- true;
+	if b then com.has_error <- true;
 	b
 
 (* Defines *)