Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
tcm390 committed Feb 12, 2025
1 parent c82be6c commit d283e52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ async function findDatabaseAdapter(runtime: IAgentRuntime) {
let adapter: Adapter | undefined;
// if not found, default to sqlite
if (adapters.length === 0) {
const sqliteAdapterPlugin = await importWithRetry<any>('@elizaos-plugins/sqlite');
const sqliteAdapterPlugin = await importWithRetry('@elizaos-plugins/sqlite');
const sqliteAdapterPluginDefault = sqliteAdapterPlugin.default;
adapter = sqliteAdapterPluginDefault.adapters[0];
if (!adapter) {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const dynamicImport = async (specifier: string) => {
if (module !== undefined) {
return module;
} else {
return await importWithRetry<any>(specifier);
return await importWithRetry(specifier);
}
};

Expand All @@ -49,7 +49,7 @@ export async function handlePluginImporting(plugins: string[]) {
const importedPlugins = await Promise.all(
plugins.map(async (plugin) => {
try {
const importedPlugin = await importWithRetry<any>(plugin);
const importedPlugin = await importWithRetry(plugin);
const functionName =
`${plugin
.replace("@elizaos/plugin-", "")
Expand Down

0 comments on commit d283e52

Please sign in to comment.