Skip to content

Commit

Permalink
style: Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
adintegra committed Jan 14, 2025
1 parent e0b52a2 commit be425d2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/domain/datasource/urls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,5 @@ const allowedDataSourceUrls = allowedSources.map((o) => o.value.split("+")[1]);
export type DataSourceUrl = string & {};

export const isDataSourceUrlAllowed = (url: string): url is DataSourceUrl => {
if (typeof url === "string" && allowedDataSourceUrls.includes(url)) {
return true;
}
return false;
return typeof url === "string" && allowedDataSourceUrls.includes(url);
};

0 comments on commit be425d2

Please sign in to comment.