Skip to content

Commit

Permalink
Removed unneeded assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Jun 21, 2024
1 parent 039756f commit 45362bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wpvc-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function normalizeConfig(rawConfig: unknown): Config {
Array.isArray(rawConfig.readme) &&
rawConfig.readme.every((item) => typeof item === "string")
) {
config.readme = rawConfig.readme as Array<string>;
config.readme = rawConfig.readme;
} else {
throw new ConfigError(
'Invalid config file, the "readme" field should be a string or an array of strings.',
Expand All @@ -44,7 +44,7 @@ function normalizeConfig(rawConfig: unknown): Config {
'Invalid config file, the "assignees" field should be an array of strings.',
);
}
config.assignees = rawConfig.assignees as Array<string>;
config.assignees = rawConfig.assignees;
}
if ("channel" in rawConfig) {
if (
Expand Down

0 comments on commit 45362bf

Please sign in to comment.