Skip to content

Commit 1ac31d0

Browse files
committed
code maintaince
1 parent 8ccbe16 commit 1ac31d0

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/cli/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ function outputResults(
259259
report: CompareJsonEntry[],
260260
opts: Options,
261261
exitWithError: boolean,
262-
): void {
262+
): never {
263263
if (opts.json) {
264264
console.log(JSON.stringify(report, null, 2));
265265
}

src/commands/compare.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ function createCategoryFilter(
4242
return (category: Category) => !onlySet || onlySet.has(category);
4343
}
4444

45+
interface ParsedAndFilteredEnv {
46+
current: Record<string, string>;
47+
example: Record<string, string>;
48+
currentKeys: string[];
49+
exampleKeys: string[];
50+
}
51+
4552
/**
4653
* Parses and filters the environment and example files.
4754
* @param envPath The path to the .env file
@@ -53,7 +60,7 @@ function parseAndFilter(
5360
envPath: string,
5461
examplePath: string,
5562
opts: ComparisonOptions,
56-
) {
63+
): ParsedAndFilteredEnv {
5764
const currentFull = parseEnvFile(envPath);
5865
const exampleFull = parseEnvFile(examplePath);
5966

@@ -121,7 +128,7 @@ function findDuplicates(
121128
*/
122129
export async function compareMany(
123130
pairs: FilePair[],
124-
opts: ComparisonOptions,
131+
opts: Readonly<ComparisonOptions>,
125132
): Promise<ComparisonResult> {
126133
let exitWithError = false;
127134

0 commit comments

Comments
 (0)