From 17663c12326dd1053f89a3bd741807f139973dae Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Tue, 5 Mar 2019 11:53:35 +1100 Subject: Add eslint for linting (denoland/deno_std#235) Original: https://github.com/denoland/deno_std/commit/c0390ade3de4d825423c9f0f5e1aa56ffd509942 --- bytes/bytes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bytes') diff --git a/bytes/bytes.ts b/bytes/bytes.ts index ef333288e..080ec4445 100644 --- a/bytes/bytes.ts +++ b/bytes/bytes.ts @@ -22,7 +22,7 @@ export function bytesFindIndex(a: Uint8Array, pat: Uint8Array): number { } /** Find last index of binary pattern from a. If not found, then return -1 **/ -export function bytesFindLastIndex(a: Uint8Array, pat: Uint8Array) { +export function bytesFindLastIndex(a: Uint8Array, pat: Uint8Array): number { const e = pat[pat.length - 1]; for (let i = a.length - 1; i >= 0; i--) { if (a[i] !== e) continue; -- cgit v1.2.3