From fd03b8c7faaa702fb4bc14056f4aaa906f643c2b Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Mon, 4 Jun 2018 06:32:46 +0200
Subject: [PATCH] refactor: github datasource clean

---
 lib/datasource/github.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/datasource/github.js b/lib/datasource/github.js
index 65f89bfdad..d69b26765c 100644
--- a/lib/datasource/github.js
+++ b/lib/datasource/github.js
@@ -9,7 +9,6 @@ module.exports = {
 
 async function getDependency(repo, options = {}) {
   const ref = options.ref || 'tag';
-  const clean = options.clean === 'true';
   let versions;
   let endpoint;
   let token;
@@ -51,7 +50,7 @@ async function getDependency(repo, options = {}) {
     return null;
   }
   versions = versions.filter(version => isVersion(version));
-  if (clean) {
+  if (options.clean === 'true') {
     versions = versions.map(version => version.replace(/^v/, ''));
   }
   const dependency = {
-- 
GitLab