From d5ad005f6c8a79af48f4c73f0ec87775ab746d0d Mon Sep 17 00:00:00 2001 From: OpportunityLiu Date: Wed, 19 Jun 2019 11:30:06 +0800 Subject: improve dump --- xmake/core/base/string.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmake/core/base/string.lua') diff --git a/xmake/core/base/string.lua b/xmake/core/base/string.lua index 558344d7f..5242a0a1e 100644 --- a/xmake/core/base/string.lua +++ b/xmake/core/base/string.lua @@ -28,11 +28,11 @@ string._dump = string._dump or string.dump function string._makestr(object, deflate, serialize, level) if type(object) == "string" then return serialize and string.format("%q", object) or object - elseif type(object) == "boolean" or type(object) == "number" then + elseif type(object) == "boolean" or type(object) == "number" then return tostring(object) elseif not serialize and type(object) == "table" and (getmetatable(object) or {}).__tostring then return tostring(object) - elseif type(object) == "table" then + elseif type(object) == "table" then -- make head local s = "" -- cgit v1.3.1