From 9b8776d794e42e98f4e692a0c4448cf80f928e93 Mon Sep 17 00:00:00 2001 From: Daniel Pupius Date: Thu, 1 Aug 2024 15:26:19 -0700 Subject: [PATCH] Remove b64test function which makes eslint/tslint angry --- generator/fetch_tmpl.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/generator/fetch_tmpl.ts b/generator/fetch_tmpl.ts index 3007282..1fa8f0d 100644 --- a/generator/fetch_tmpl.ts +++ b/generator/fetch_tmpl.ts @@ -104,13 +104,6 @@ export function b64Decode(s: string): Uint8Array { return new Uint8Array(buffer); } -// eslint-disable-next-line @typescript-eslint/no-unused-vars -function b64Test(s: string): boolean { - return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test( - s - ); -} - export interface InitReq extends RequestInit { pathPrefix?: string; }