Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
v8tenko committed Apr 8, 2024
1 parent 625a5c4 commit 49e9c44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/steps/processChangelogs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {glob} from '../utils/glob';
import {join} from 'node:path';
import {ArgvService} from '../services';
import {readFile, unlink, writeFile} from 'node:fs/promises';
import { Lang } from '../constants';
import {Lang} from '../constants';

type Language = string;
type MergedChangelogs =
Expand Down Expand Up @@ -51,8 +51,8 @@ export async function processChangelogs() {

changes.forEach(([path, value]) => {
if (!langs) {
path = `${Lang.EN}/${path}`
}
path = `${Lang.EN}/${path}`;
}

const [lang, ...rest] = path.split('/');
const [, hash] = rest.pop().split(/[-.]/);
Expand Down

0 comments on commit 49e9c44

Please sign in to comment.