mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-02 10:33:39 +00:00
930cf6633c
fix: Additional vi.mock path corrections and prettier formatting
18 lines
528 B
TypeScript
18 lines
528 B
TypeScript
import { isNonEmptyString } from '@sindresorhus/is';
|
|
import { AbstractMigration } from '../base/abstract-migration.ts';
|
|
|
|
export class PostUpdateOptionsMigration extends AbstractMigration {
|
|
override readonly propertyName = 'postUpdateOptions';
|
|
|
|
override run(value: unknown): void {
|
|
// v8 ignore else -- TODO: add test #40625
|
|
if (Array.isArray(value)) {
|
|
const newValue = value
|
|
.filter(isNonEmptyString)
|
|
.filter((option) => option !== 'gomodNoMassage');
|
|
|
|
this.rewrite(newValue);
|
|
}
|
|
}
|
|
}
|