Skip to content

Commit 2b5bc54

Browse files
committed
fix(settings): correct default value for throwErrorOnBrokenSymbolicLink
1 parent 9ab065b commit 2b5bc54

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/settings.spec.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,6 @@ describe('Settings', () => {
5555
assert.ok(settings.stats);
5656
});
5757

58-
it('should set the "throwErrorOnBrokenSymbolicLink" option to "true" when the "stats" option is enabled', () => {
59-
const settings = new Settings({
60-
stats: true
61-
});
62-
63-
assert.ok(settings.stats);
64-
assert.ok(settings.throwErrorOnBrokenSymbolicLink);
65-
});
66-
6758
it('should return the `fs` option with custom method', () => {
6859
const customReaddirSync = () => [];
6960

src/settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export default class Settings {
123123
public readonly onlyFiles: boolean = this._getValue(this._options.onlyFiles, true);
124124
public readonly stats: boolean = this._getValue(this._options.stats, false);
125125
public readonly suppressErrors: boolean = this._getValue(this._options.suppressErrors, false);
126-
public readonly throwErrorOnBrokenSymbolicLink: boolean = this.stats && this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
126+
public readonly throwErrorOnBrokenSymbolicLink: boolean = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, false);
127127
public readonly unique: boolean = this._getValue(this._options.unique, true);
128128

129129
constructor(private readonly _options: Options = {}) {

0 commit comments

Comments
 (0)