Skip to content

Commit

Permalink
chore: remove unused comments
Browse files Browse the repository at this point in the history
  • Loading branch information
GustavEikaas committed Feb 23, 2025
1 parent 241e906 commit 93f65ed
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lua/octo/workflow_runs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ local function get_temp_filepath(length)
return vim.fs.joinpath(vim.fs.normalize(vim.fn.stdpath "cache"), name)
end

-- Accepts zip contents and writes and then unzips them
---@param stdout string - The zip content to write
local function write_zipped_file(stdout)
local zip_location = get_temp_filepath()
Expand All @@ -280,7 +279,6 @@ local function write_zipped_file(stdout)
utils.error("Error deleting logs archive: " .. unlink_error)
end
end
--TODO: return handler for deleting file
end

local function get_logs(id)
Expand All @@ -307,7 +305,7 @@ local function get_logs(id)
end

local sanitized_name = node.id:gsub("/", ""):gsub(":", ""):gsub(">", "")
--Make more than 3 consecutive dots at the end of line into ...
--Make more than 3 consecutive dots at the end of line into */. This avoids a bug with unreliable filename endings
local sanitized_job_id = node.job_id:gsub("/", ""):gsub(":", ""):gsub("%.+$", "*/")
local file_name = string.format("%s_%s.txt", node.number, sanitized_name)
local path = sanitized_job_id .. file_name
Expand Down Expand Up @@ -401,7 +399,6 @@ local tree_keymaps = {
if node.expanded == false then
node.expanded = true
if node.type == "step" then
-- only refresh logs aggressively if step is in_progress
if node.conclusion == "in_progress" then
utils.error "Cant view logs of running workflow..."
return
Expand Down

0 comments on commit 93f65ed

Please sign in to comment.