refactor(core): Remove linting exceptions in nodes-base (no-changelog) (#4944)

This commit is contained in:
Michael Kret
2023-01-13 19:11:56 +02:00
committed by GitHub
parent d7732ea150
commit 6608e69457
254 changed files with 2687 additions and 2675 deletions

View File

@@ -10,6 +10,17 @@ import {
import Parser from 'rss-parser';
import { URL } from 'url';
// Utility function
function validateURL(url: string) {
try {
const _parseUrl = new URL(url);
return true;
} catch (err) {
return false;
}
}
export class RssFeedRead implements INodeType {
description: INodeTypeDescription = {
displayName: 'RSS Read',
@@ -83,14 +94,3 @@ export class RssFeedRead implements INodeType {
}
}
}
// Utility function
function validateURL(url: string) {
try {
const _parseUrl = new URL(url);
return true;
} catch (err) {
return false;
}
}