From 93fab4b3e185a95497cb789047518aa428f0abd5 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sun, 1 Oct 2023 21:45:37 +0530 Subject: lib/curl: clean up --- lib/curl.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/curl.lua b/lib/curl.lua index a832461..da3b0c7 100644 --- a/lib/curl.lua +++ b/lib/curl.lua @@ -28,8 +28,8 @@ local get = function (url, headr, args) end fetch = io.popen(cmd):read('*all') - scode = string.match(fetch, '%d*$') - fetch = string.gsub(fetch, '%s*%d*$', '') + scode = fetch:match('%d*$') + fetch = fetch:gsub('%s*%d*$', '') return fetch, tonumber(scode) end -- cgit v1.2.3