Skip to content

Commit

Permalink
Remove redundant output type from getV2ClientNamesRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Dec 30, 2022
1 parent f2c9bf8 commit 8dcbbf9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/transforms/v2-to-v3/utils/get/getV2ClientNamesRecord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ import { hasRequire } from "../has";
import { getV2ClientNamesRecordFromImport } from "./getV2ClientNamesRecordFromImport";
import { getV2ClientNamesRecordFromRequire } from "./getV2ClientNamesRecordFromRequire";

export const getV2ClientNamesRecord = (
j: JSCodeshift,
source: Collection<unknown>
): Record<string, string> =>
export const getV2ClientNamesRecord = (j: JSCodeshift, source: Collection<unknown>) =>
hasRequire(j, source)
? getV2ClientNamesRecordFromRequire(j, source)
: getV2ClientNamesRecordFromImport(j, source);

0 comments on commit 8dcbbf9

Please sign in to comment.