浏览代码

[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)';