Skip to content

Commit 1e8bd73

Browse files
committed
fixed some linter errors
Signed-off-by: nicol-ii <[email protected]>
1 parent 61c27db commit 1e8bd73

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

scripts/gen_bytecode.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ function gen_bytecode()
7070
end
7171

7272
return table.concat(t)
73-
end
73+
end

src/parsec/agent/runners/lua/impl.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -296,17 +296,17 @@ namespace cbdc::parsec::agent::runner {
296296

297297
return 0;
298298
}
299-
299+
300300
auto lua_runner::make_hash(lua_State* L) -> int {
301301
int n = lua_gettop(L);
302302
if(n != 1) {
303303
lua_pushliteral(L, "hash takes 1 arg");
304304
lua_error(L);
305305
}
306306
if(lua_isstring(L, 1) != 1) {
307-
lua_pushliteral(L, "invalid preimage");
308-
lua_error(L);
309-
}
307+
lua_pushliteral(L, "invalid preimage");
308+
lua_error(L);
309+
}
310310
size_t sz{};
311311
const auto* str = lua_tolstring(L, 1, &sz);
312312
assert(str != nullptr);

0 commit comments

Comments
 (0)