Skip to content

Commit 8ff84c8

Browse files
committed
fix: code review suggestions
1 parent fd0c228 commit 8ff84c8

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

.github/scripts/validate-proposals.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ const { execSync } = require('child_process');
44
const fs = require('fs');
55
const { validateDirectory, formatErrors } = require('./validate-since');
66

7-
const witPath = (proposal) => `proposals/${proposal}/wit`;
8-
97
const parseFiles = (filesJson) => {
108
if (!filesJson || filesJson === 'null') return [];
119
try {
@@ -51,7 +49,7 @@ if (toValidate.length === 0) {
5149
let failed = false;
5250

5351
for (const proposal of toValidate) {
54-
const witDir = witPath(proposal);
52+
const witDir = ((proposal) => `proposals/${proposal}/wit`)(proposal);
5553
console.log(`::group::Validating ${proposal}`);
5654

5755
try {

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ WASI started with launching what is now called [Preview 1], an API using
1313
the witx IDL, and it is now widely used. Its major influences are POSIX and
1414
CloudABI.
1515

16-
[WASI 0.2] is a modular collection of APIs defined with the [Wit IDL],
17-
incorporating many of the lessons learned from Preview 1, including support for
16+
[WASI 0.2] (Preview 2) is a modular collection of APIs defined with the [Wit IDL],
17+
incorporating many of the lessons learned from WASI 0.1, including support for
1818
a wider range of source languages, modularity, a more expressive type system,
1919
and virtualizability.
2020

0 commit comments

Comments
 (0)