mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor(core): Update rule typescript-eslint/no-unused-vars to not error when variable starts with _ (#4523)
* ⚡ rule and fixes * ⚡ clean up
This commit is contained in:
@@ -4,7 +4,7 @@ import snowflake from 'snowflake-sdk';
|
||||
|
||||
export function connect(conn: snowflake.Connection) {
|
||||
return new Promise((resolve, reject) => {
|
||||
conn.connect((err, conn) => {
|
||||
conn.connect((err, _conn) => {
|
||||
if (!err) {
|
||||
// @ts-ignore
|
||||
resolve();
|
||||
@@ -17,7 +17,7 @@ export function connect(conn: snowflake.Connection) {
|
||||
|
||||
export function destroy(conn: snowflake.Connection) {
|
||||
return new Promise((resolve, reject) => {
|
||||
conn.destroy((err, conn) => {
|
||||
conn.destroy((err, _conn) => {
|
||||
if (!err) {
|
||||
// @ts-ignore
|
||||
resolve();
|
||||
|
||||
Reference in New Issue
Block a user