소스 검색

[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 *)