From d590140bb3c7b3aa5e5ff14605bcdd207695e803 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 15 Sep 2016 11:43:10 +0900 Subject: [PATCH] Improve readability --- src/plugins/wikipedia.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/plugins/wikipedia.ts b/src/plugins/wikipedia.ts index 4abe0c6..ccf6c1e 100644 --- a/src/plugins/wikipedia.ts +++ b/src/plugins/wikipedia.ts @@ -5,9 +5,8 @@ const client = require('cheerio-httpcli'); client.referer = false; client.timeout = 10000; -exports.test = (url: URL.Url) => { - return /\.wikipedia\.org$/.test(url.hostname); -}; +exports.test = (url: URL.Url) => + /\.wikipedia\.org$/.test(url.hostname); exports.summary = async (url: URL.Url) => { const res = await client.fetch(url.href);