From 61d02902b3219098cf64f3261a76a5d1129fc3d3 Mon Sep 17 00:00:00 2001 From: Andreas Hofer Date: Thu, 31 Mar 2016 20:20:50 +0200 Subject: [PATCH] fix problem reported by coverage analysis --- spec/inspect_spec.lua | 4 ---- 1 file changed, 4 deletions(-) diff --git a/spec/inspect_spec.lua b/spec/inspect_spec.lua index e702e9f..5aa1934 100644 --- a/spec/inspect_spec.lua +++ b/spec/inspect_spec.lua @@ -415,11 +415,7 @@ describe( 'inspect', function() it('allows changing the global tostring', function() local save = _G.tostring _G.tostring = function(x) - if type(x) == "string" then - return x - else return inspect(x) - end end local s = tostring({1, 2, 3}) _G.tostring = save