mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor(core): Remove linting exceptions in nodes-base (no-changelog) (#4944)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user