Skip to content

Commit 1719b98

Browse files
fix(lint): unused var in tests
1 parent 2f75291 commit 1719b98

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.luacheckrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
allow_defined = true
22
exclude_files = {
33
"dist/",
4-
"src/common/crypto"
4+
"src/common/crypto",
5+
"tools/fixtures/aos-process"
56
}
67
globals = {
78
"Handlers",

spec/ant_spec.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ describe("Arweave Name Token", function()
111111

112112
it("fails to set @ record with priority order", function()
113113
local name, transactionId, ttlSeconds, priority = "@", fake_address, 60, 1
114-
local status, res = pcall(records.setRecord, name, transactionId, ttlSeconds, priority)
114+
local status, _ = pcall(records.setRecord, name, transactionId, ttlSeconds, priority)
115115
assert.is_false(status)
116116
end)
117117

src/common/utils.lua

-2
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,6 @@ function utils.getHandlerNames(handlers)
240240
return names
241241
end
242242

243-
244-
245243
--- @param err any
246244
--- @description Error handler for xpcall
247245
--- @return string

0 commit comments

Comments
 (0)