소스 검색

[ci] fixed local variable uninitialized error

Andy Li 10 년 전
부모
커밋
8a3053968e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      tests/RunCi.hx

+ 2 - 2
tests/RunCi.hx

@@ -124,12 +124,12 @@ class RunCi {
 		var proc = new Process("haxelib", ["path", libName]);
 		var result;
 		var code = proc.exitCode();
-		while(true) {
+		do {
 			result = proc.stdout.readLine();
 			if (!result.startsWith("-L")) {
 				break;
 			}
-		}
+		} while(true);
 		proc.close();
 		if (code != 0) {
 			throw 'Failed to get haxelib path ($result)';