Skip to content

Commit c7e940c

Browse files
committed
fix: Prevent setting a constant variable
It appears that there was an option --patterns in the past, whcih did not work in the fork?
1 parent 02a5789 commit c7e940c

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@
88

99
### BREAKING CHANGES
1010

11-
* Although you shouldn't notice any change on the behaviour of the command line, something unexpected might've changed. Something did change
12-
- if you're annoyed by inserting "--" between the multi-value option and other
13-
arguments, you don't have to do it any more. Multi-value options can be entered
14-
either using the option prefix multiple times for each value, or using
15-
the option prefix just once and separating the values by commas.
11+
* Although you shouldn't notice any change on the behaviour of the command line, something unexpected might've changed. Something did change: if you're annoyed by inserting "--" between the multi-value option and other arguments, you don't have to do it any more. Multi-value options can be entered either using the option prefix multiple times for each value, or using the option prefix just once and separating the values by commas.
1612

1713
# [13.1.0](https://github.com/prantlf/jsonlint/compare/v13.0.1...v13.1.0) (2023-03-05)
1814

lib/cli.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,9 +499,6 @@ function processPatterns (patterns) {
499499
}
500500

501501
function main () {
502-
if (!args.length) {
503-
args = params.patterns || []
504-
}
505502
if (args.length) {
506503
const dynamic = args.some(file => isDynamicPattern(file))
507504
if (dynamic) {

0 commit comments

Comments
 (0)