瀏覽代碼

[typer] fix double check

Simon Krajewski 2 年之前
父節點
當前提交
ac59c250b4
共有 1 個文件被更改,包括 1 次插入2 次删除
  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 *)