Skip to content

Commit

Permalink
opt: do not error if config does not define customFormats (assume emp…
Browse files Browse the repository at this point in the history
…ty list)
  • Loading branch information
BlackDark committed Oct 28, 2024
1 parent a296034 commit 58a1792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const transformConfig = (input: InputConfigSchema): ConfigSchema => {
const mappedCustomFormats = (arrInput: Record<string, InputConfigArrInstance>): Record<string, ConfigArrInstance> => {
return Object.entries(arrInput).reduce(
(p, [key, value]) => {
const mappedCustomFormats = value.custom_formats.map<ConfigCustomFormat>((cf) => {
const mappedCustomFormats = (value.custom_formats || []).map<ConfigCustomFormat>((cf) => {
const { assign_scores_to, quality_profiles, ...rest } = cf;

if (quality_profiles) {
Expand Down

0 comments on commit 58a1792

Please sign in to comment.