Refacotr: Better variable name

This commit is contained in:
syuilo⭐️ 2017-01-28 09:15:42 +09:00 committed by GitHub
parent 25d9232ee2
commit 0953db5826

View File

@ -10,9 +10,9 @@ const plugins: IPlugin[] = [
]; ];
export default async (url: string): Promise<ISummary> => { export default async (url: string): Promise<ISummary> => {
const realUrl = await tracer(url); const actualUrl = await tracer(url);
const _url = URL.parse(realUrl, true); const _url = URL.parse(actualUrl, true);
const plugin = plugins.filter(plugin => plugin.test(_url))[0]; const plugin = plugins.filter(plugin => plugin.test(_url))[0];