Skip to content

Commit cdd945f

Browse files
committed
Code cleanup
1 parent ad7e39f commit cdd945f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ Downstream browsers include the same properties as core browsers, as well as the
216216

217217
#### `outputFormat`
218218

219-
By default, this function returns an `Array` of `Objects` which can be manipulated in Javascript or output to JSON.
219+
By default, this function returns an `Array` of `Objects` which can be manipulated in Javascript or output to JSON.
220220

221221
To return an `Object` that nests keys , set `outputFormat` to `object`:
222222

@@ -280,7 +280,7 @@ getAllVersions({
280280
281281
### Static resources
282282
283-
The outputs of `getAllVersions()` are available as JSON or CSV files generated on a daily basis and hosted on GitHub pages:
283+
The outputs of `getAllVersions()` are available as JSON or CSV files generated on a daily basis and hosted on GitHub pages:
284284
285285
- Core browsers only
286286
- [Array](https://web-platform-dx.github.io/baseline-browser-mapping/all_versions_array.json)

src/scripts/baseline-browser-versions.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,10 @@ const compareVersions = (
129129
if (!incomingVersionStringMajor || !previousVersionStringMajor) {
130130
throw new Error(
131131
"One of these version strings is broken: " +
132-
incomingVersionString +
133-
" or " +
134-
previousVersionString +
135-
"",
132+
incomingVersionString +
133+
" or " +
134+
previousVersionString +
135+
"",
136136
);
137137
}
138138

@@ -145,10 +145,10 @@ const compareVersions = (
145145
if (incomingVersionStringMinor) {
146146
if (
147147
parseInt(incomingVersionStringMajor) ==
148-
parseInt(previousVersionStringMajor) &&
148+
parseInt(previousVersionStringMajor) &&
149149
(!previousVersionStringMinor ||
150150
parseInt(incomingVersionStringMinor) >
151-
parseInt(previousVersionStringMinor))
151+
parseInt(previousVersionStringMinor))
152152
) {
153153
return 1;
154154
}

0 commit comments

Comments
 (0)