refactor: finish lint cleanup
This commit is contained in:
@@ -257,7 +257,7 @@ export async function assertMalformedFixture(path) {
|
||||
);
|
||||
}
|
||||
|
||||
export function assertStrings(strings) {
|
||||
function assertStrings(strings) {
|
||||
for (const expected of [
|
||||
"REA_GHIDRA_INVENTORY_ENTRY",
|
||||
"REA_GHIDRA_LEAF_VALUE",
|
||||
@@ -273,7 +273,7 @@ export function assertStrings(strings) {
|
||||
}
|
||||
}
|
||||
|
||||
export function assertSegments(segments, imageBase) {
|
||||
function assertSegments(segments, imageBase) {
|
||||
if (
|
||||
!Array.isArray(segments) ||
|
||||
segments.length === 0 ||
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
requireProcedure,
|
||||
} from "./verify-real-ghidra-assertions.mjs";
|
||||
|
||||
export async function functionCall(client, operation, parameters) {
|
||||
async function functionCall(client, operation, parameters) {
|
||||
const input = parseGhidraFunctionInput(operation, parameters);
|
||||
if (!input.ok) throw input.error;
|
||||
const called = await client.callTool(operation, input.value);
|
||||
|
||||
@@ -45,7 +45,7 @@ export async function allItems(client, operation, parameters) {
|
||||
return items;
|
||||
}
|
||||
|
||||
export async function expectRemoteFailure(client, operation, parameters, code) {
|
||||
async function expectRemoteFailure(client, operation, parameters, code) {
|
||||
const result = await client.callTool(operation, parameters);
|
||||
if (
|
||||
result.ok ||
|
||||
@@ -59,7 +59,7 @@ export async function expectRemoteFailure(client, operation, parameters, code) {
|
||||
return { operation, code };
|
||||
}
|
||||
|
||||
export async function verifyBridgeRejections(client) {
|
||||
async function verifyBridgeRejections(client) {
|
||||
return {
|
||||
unknownDocument: await expectRemoteFailure(
|
||||
client,
|
||||
|
||||
Reference in New Issue
Block a user