Skip to content

Commit 810af7d

Browse files
committed
use let&const instead of var
1 parent ea55a45 commit 810af7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function getSqlExecutor(httpRequestFieldName) {
9797
//if the parameter is an object, assume it's a blob parameter
9898
if (typeof param === "object" && param !== null) {
9999
if (param.hasOwnProperty("data")) {
100-
var data = param.data;
100+
const data = param.data;
101101
let buff = null;
102102
if (typeof Buffer.from === "function") {
103103
// Node 5.10+
@@ -122,7 +122,7 @@ function getSqlExecutor(httpRequestFieldName) {
122122
//if the parameter is an object, assume it's a blob parameter
123123
if (typeof param === "object" && param !== null) {
124124
if (param.hasOwnProperty("data")) {
125-
var data = param.data;
125+
const data = param.data;
126126
let buff = null;
127127
if (typeof Buffer.from === "function") {
128128
// Node 5.10+
@@ -185,7 +185,7 @@ function getSqlExecutor(httpRequestFieldName) {
185185

186186
//get field count for row
187187
let fieldcount = 0;
188-
for (var prop in row) {
188+
for (const prop in row) {
189189
if (Object.prototype.hasOwnProperty.call(row, prop)) {
190190
fieldcount++;
191191
}

0 commit comments

Comments
 (0)