Found unused variables in TypeScript code JS-0356
Performance
Major
5 months ago3 years old
'rpcClient' is defined but never used
 8import { PrivateKey } from "@hiveio/dhive";
 9
10import { app } from "./../src/app";
11import { rpcClient } from "./../src/common";12
13import { testKeys } from "./index";
14
'PrivateKey' is defined but never used
 5import * as path from "path";
 6import * as fs from "fs";
 7import * as crypto from "crypto";
 8import { PrivateKey } from "@hiveio/dhive"; 9
10import { app } from "./../src/app";
11import { rpcClient } from "./../src/common";
'meta' is assigned a value but never used
 98      `http://localhost:${port}/0x0/${uploaded.body.url}`,
 99    );
100    const image = sharp(res.body);
101    const meta = await image.metadata();102    assert(
103      (await storeExists(proxyStore, key)) === false,
104      "proxy store has original",
'fname' is assigned a value but never used
 92      fs.readFileSync(path.resolve(__dirname, "test.jpg")),
 93      port,
 94    );
 95    const [key, fname] = uploaded.body.url.split("/").slice(-2); 96    const res = await needle(
 97      "get",
 98      `http://localhost:${port}/0x0/${uploaded.body.url}`,
'uploadStore' is defined but never used
  8import * as sharp from "sharp";
  9
 10import { app } from "./../src/app";
 11import { proxyStore, uploadStore } from "./../src/common"; 12import { storeExists, base58Enc } from "./../src/utils";
 13
 14import { uploadImage } from "./upload";