Skip to content

Commit e313969

Browse files
committed
deno lint
1 parent c15997d commit e313969

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

array_parser.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,22 @@
2020
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2121
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2222
// THE SOFTWARE.
23+
24+
// deno-lint-ignore ban-types
2325
export function parseArray(source: string, transform: Function | undefined) {
2426
return new ArrayParser(source, transform).parse();
2527
}
2628

2729
class ArrayParser {
2830
source: string;
31+
// deno-lint-ignore ban-types
2932
transform: Function;
3033
position = 0;
3134
entries: Array<unknown> = [];
3235
recorded: Array<unknown> = [];
3336
dimension = 0;
3437

38+
// deno-lint-ignore ban-types
3539
constructor(source: string, transform: Function | undefined) {
3640
this.source = source;
3741
this.transform = transform || identity;

decode.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ function decodeByteaHex(byteaStr: string): Uint8Array {
150150
function decodeByteaEscape(byteaStr: string): Uint8Array {
151151
let bytes = [];
152152
let i = 0;
153+
let k = 0;
153154
while (i < byteaStr.length) {
154155
if (byteaStr[i] !== "\\") {
155156
bytes.push(byteaStr.charCodeAt(i));
@@ -166,7 +167,7 @@ function decodeByteaEscape(byteaStr: string): Uint8Array {
166167
) {
167168
backslashes++;
168169
}
169-
for (var k = 0; k < Math.floor(backslashes / 2); ++k) {
170+
for (k = 0; k < Math.floor(backslashes / 2); ++k) {
170171
bytes.push(BACKSLASH_BYTE_VALUE);
171172
}
172173
i += Math.floor(backslashes / 2) * 2;

0 commit comments

Comments
 (0)