Skip to content

Commit

Permalink
chore: remote var with let
Browse files Browse the repository at this point in the history
  • Loading branch information
shengxj1 committed Jan 8, 2025
1 parent ea9d1c0 commit 461e33c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/generation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ export async function generateText({
case ModelProviderName.GAIANET: {
elizaLogger.debug("Initializing GAIANET model.");

var baseURL = models[provider].endpoint;
let baseURL = models[provider].endpoint;
if (!baseURL) {
switch (modelClass) {
case ModelClass.SMALL:
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-0g/src/actions/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const zgUpload: Action = {
}

const file = await ZgFile.fromFilePath(filePath);
var [tree, err] = await file.merkleTree();
let [tree, err] = await file.merkleTree();
if (err === null) {
console.log("File Root Hash: ", tree.rootHash());
} else {
Expand All @@ -122,7 +122,7 @@ export const zgUpload: Action = {
const indexer = new Indexer(zgIndexerRpc);
const flowContract = getFlowContract(flowAddr, signer);

var [tx, err] = await indexer.upload(
let [tx, err] = await indexer.upload(
file,
0,
zgEvmRpc,
Expand Down

0 comments on commit 461e33c

Please sign in to comment.