Skip to content

Commit

Permalink
use let&const instead of var
Browse files Browse the repository at this point in the history
  • Loading branch information
assafmo committed Sep 14, 2020
1 parent ea55a45 commit 810af7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function getSqlExecutor(httpRequestFieldName) {
//if the parameter is an object, assume it's a blob parameter
if (typeof param === "object" && param !== null) {
if (param.hasOwnProperty("data")) {
var data = param.data;
const data = param.data;
let buff = null;
if (typeof Buffer.from === "function") {
// Node 5.10+
Expand All @@ -122,7 +122,7 @@ function getSqlExecutor(httpRequestFieldName) {
//if the parameter is an object, assume it's a blob parameter
if (typeof param === "object" && param !== null) {
if (param.hasOwnProperty("data")) {
var data = param.data;
const data = param.data;
let buff = null;
if (typeof Buffer.from === "function") {
// Node 5.10+
Expand Down Expand Up @@ -185,7 +185,7 @@ function getSqlExecutor(httpRequestFieldName) {

//get field count for row
let fieldcount = 0;
for (var prop in row) {
for (const prop in row) {
if (Object.prototype.hasOwnProperty.call(row, prop)) {
fieldcount++;
}
Expand Down

0 comments on commit 810af7d

Please sign in to comment.