Skip to content

Commit

Permalink
chore: add more logs for statistics (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
boltlessengineer committed Sep 11, 2024
1 parent fe593c1 commit e3239b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/rest-nvim/client/curl/cli.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,11 @@ function parser.parse_stat_pair(str)
return
end
value = vim.trim(value)
if key:find("size") then
if key:find("size") and tonumber(value) then
log.debug("transforming stat pair as size:", key, value)
value = utils.transform_size(value)
elseif key:find("time") then
elseif key:find("time") and tonumber(value) then
log.debug("transforming stat pair as time:", key, value)
value = utils.transform_time(value)
end
return key, value
Expand Down

0 comments on commit e3239b6

Please sign in to comment.