Browse Source

remove unnecessary hasattr check in haxe.Log.trace

Simon Krajewski 11 năm trước cách đây
mục cha
commit
b01e3e73a5
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      std/haxe/Log.hx

+ 1 - 2
std/haxe/Log.hx

@@ -98,8 +98,7 @@ class Log {
 			var str:String = null;
 			if (infos != null) {
 				str = infos.fileName + ":" + Std.string(infos.lineNumber) + ": " + v;
-				if (python.lib.Builtin.hasattr(infos, "customParams") && infos.customParams != null)
-				{
+				if (infos.customParams != null) {
 					str += "," + infos.customParams.join(",");
 				}
 			} else {