Skip to content

Commit 7066877

Browse files
rake format
1 parent 74e1c6e commit 7066877

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

lib/ruby_wasm/build_system/product/zlib.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ def name
2929
end
3030

3131
def configure_args
32-
args = %w[
33-
CHOST=linux
34-
]
32+
args = %w[CHOST=linux]
3533

3634
args + tools_args
3735
end
@@ -48,8 +46,7 @@ def build
4846

4947
system "#{configure_args.join(" ")} ./configure --static",
5048
chdir: product_build_dir
51-
system "make install DESTDIR=#{destdir}",
52-
chdir: product_build_dir
49+
system "make install DESTDIR=#{destdir}", chdir: product_build_dir
5350
end
5451
end
5552
end

packages/npm-packages/ruby-wasm-wasi/src/browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export const DefaultRubyVM = async (
7878

7979
const imports = wasi.getImports(rubyModule) as WebAssembly.Imports;
8080
vm.addToImports(imports);
81-
const printer = (options.consolePrint ?? true) ? consolePrinter() : undefined;
81+
const printer = options.consolePrint ?? true ? consolePrinter() : undefined;
8282
printer?.addToImports(imports);
8383

8484
const instance = await WebAssembly.instantiate(rubyModule, imports);

packages/npm-packages/ruby-wasm-wasi/tools/pack-compat-shim.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const shimContent = (target, pkg) => {
6060
const main = () => {
6161
const targets = [
6262
{ file: "bindgen/rb-abi-guest.d.ts" },
63-
{ file: "bindgen/rb-js-abi-host.d.ts" } ,
63+
{ file: "bindgen/rb-js-abi-host.d.ts" },
6464
{ file: "browser.cjs.js" },
6565
{ file: "browser.d.ts" },
6666
// They can be used by dynamic-import or <script> tag in browser
@@ -73,13 +73,13 @@ const main = () => {
7373
{ file: "browser.script.d.ts" },
7474
{ file: "browser.script.esm.js" },
7575
{ file: "browser.script.umd.js" },
76-
{ file: "index.cjs.js"} ,
77-
{ file: "index.d.ts" } ,
76+
{ file: "index.cjs.js" },
77+
{ file: "index.d.ts" },
7878
{ file: "index.esm.js" },
7979
{ file: "index.umd.js" },
8080
{ file: "node.cjs.js" },
8181
{ file: "node.d.ts" },
82-
{ file: "node.esm.js" }
82+
{ file: "node.esm.js" },
8383
];
8484

8585
const options = parseArgs();

0 commit comments

Comments
 (0)