Skip to content

Commit

Permalink
Lint (denoland#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
monkingxue authored and ry committed Jun 4, 2018
1 parent 0639f9b commit 3ddb401
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dispatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { typedArrayToArrayBuffer } from "./util";
import { _global } from "./globals";
import { main as pb } from "./msg.pb";

type MessageCallback = (msg: Uint8Array) => void;
export type MessageCallback = (msg: Uint8Array) => void;
//type MessageStructCallback = (msg: pb.IMsg) => void;

const send = V8Worker2.send;
Expand Down
4 changes: 2 additions & 2 deletions testdata/004_set_timeout.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
setTimeout(function() {
setTimeout(() => {
console.log("World");
}, 10);

console.log("Hello");

const id = setTimeout(function() {
const id = setTimeout(() => {
console.log("Not printed");
}, 10000);

Expand Down
2 changes: 1 addition & 1 deletion tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ test(async function tests_fetch() {
});

test(async function tests_readFileSync() {
let data = readFileSync("package.json");
const data = readFileSync("package.json");
if (!data.byteLength) {
throw Error(
`Expected positive value for data.byteLength ${data.byteLength}`
Expand Down

0 comments on commit 3ddb401

Please sign in to comment.