Fix typos

This commit is contained in:
Kryštof Korb 2024-01-04 00:45:19 +01:00
parent bd1ce022fe
commit 04e00cd600
1 changed files with 2 additions and 2 deletions

View File

@ -222,7 +222,7 @@ function extractValue(obj: any, keys: string[]): string | undefined {
* If none is present, returns an empty list. * If none is present, returns an empty list.
*/ */
export function getVersionInputFromTomlFile(versionFile: string): string[] { export function getVersionInputFromTomlFile(versionFile: string): string[] {
core.debug(`Trying to resolve version form ${versionFile}`); core.debug(`Trying to resolve version from ${versionFile}`);
const pyprojectFile = fs.readFileSync(versionFile, 'utf8'); const pyprojectFile = fs.readFileSync(versionFile, 'utf8');
const pyprojectConfig = toml.parse(pyprojectFile); const pyprojectConfig = toml.parse(pyprojectFile);
@ -267,7 +267,7 @@ export function getVersionInputFromTomlFile(versionFile: string): string[] {
* - Trims whitespace. * - Trims whitespace.
*/ */
export function getVersionsInputFromPlainFile(versionFile: string): string[] { export function getVersionsInputFromPlainFile(versionFile: string): string[] {
core.debug(`Trying to resolve versions form ${versionFile}`); core.debug(`Trying to resolve versions from ${versionFile}`);
const content = fs.readFileSync(versionFile, 'utf8').trim(); const content = fs.readFileSync(versionFile, 'utf8').trim();
const lines = content.split(/\r\n|\r|\n/); const lines = content.split(/\r\n|\r|\n/);
const versions = lines const versions = lines