Skip to content

Commit

Permalink
Drop unnecessary type-casting
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Dec 28, 2020
1 parent cf5a3e2 commit 9279b3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ collect.set('isActionRun', [
'https://github.com/fregante/github-url-detection/actions/runs/294962314',
]);

export const isNewAction = (url: URL | HTMLAnchorElement | Location = location): boolean => Boolean(getRepo(url)?.path === 'actions/new');
export const isNewAction = (url: URL | HTMLAnchorElement | Location = location): boolean => getRepo(url)?.path === 'actions/new';
collect.set('isNewAction', [
'https://github.com/sindresorhus/refined-github/actions/new',
]);
Expand Down

0 comments on commit 9279b3e

Please sign in to comment.