Skip to content

Commit

Permalink
refactor: rename unused loop vars to _
Browse files Browse the repository at this point in the history
  • Loading branch information
atusy committed Jul 4, 2023
1 parent 1abeadf commit dfc6b98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lua/filters.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ local function support_blankline(constructor)
local n_break = 0
local content = blocks[i].content

for j, elem in ipairs(x.content) do
for _, elem in ipairs(x.content) do
if elem.tag == "LineBreak" then
-- Count the repeated number of LineBreak
n_break = n_break + 1
Expand Down
6 changes: 3 additions & 3 deletions lua/review.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-- -*- coding: utf-8 -*-
-- Re:VIEW Writer for Pandoc
-- Copyright 2020-2023 atusy and Kenshi Muto
-- Copyright 2020 Kenshi Muto

-- config
local config = {
Expand Down Expand Up @@ -514,7 +514,7 @@ function Div(s, attr)
local blankline = attr_val(attr, "blankline")
if blankline ~= "" then
local buffer = {}
for i = 1, tonumber(blankline) do
for _ = 1, tonumber(blankline) do
table.insert(buffer, "//blankline")
end
return table.concat(buffer, "\n")
Expand Down Expand Up @@ -609,7 +609,7 @@ local function configure()

if (metadata) then
-- Load config from YAML
for k,v in pairs(config) do
for k, _ in pairs(config) do
if metadata[k] ~= nil then
config[k] = stringify(metadata[k])
end
Expand Down

0 comments on commit dfc6b98

Please sign in to comment.