Skip to content

Commit

Permalink
squash! Update codebase to support TypeScript strict mode
Browse files Browse the repository at this point in the history
Post-rebase fixes for strict mode
  • Loading branch information
maxmellen committed Feb 11, 2020
1 parent f9eccc4 commit cc1f46c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions std/fs/copy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ async function copyFile(
await Deno.copyFile(src, dest);
if (options.preserveTimestamps) {
const statInfo = await Deno.stat(src);
assert(statInfo.accessed != null, `statInfo.accessed is unavailable`);
assert(statInfo.modified != null, `statInfo.modified is unavailable`);
await Deno.utime(dest, statInfo.accessed, statInfo.modified);
}
}
Expand Down
2 changes: 1 addition & 1 deletion std/io/bufio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ export class BufReader implements Reader {
*/
async readSlice(delim: number): Promise<Uint8Array | Deno.EOF> {
let s = 0; // search start index
let slice: Uint8Array;
let slice: Uint8Array | undefined;

while (true) {
// Search buffer.
Expand Down

0 comments on commit cc1f46c

Please sign in to comment.