From e7dd449c0fd531ec792737660fb7c8e5ee9fb92b Mon Sep 17 00:00:00 2001 From: mo khan Date: Wed, 13 May 2020 16:59:55 -0600 Subject: Fix linter errors --- lib/license/finder/ext/yarn.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/license/finder/ext/yarn.rb b/lib/license/finder/ext/yarn.rb index 13057ab..dba096b 100644 --- a/lib/license/finder/ext/yarn.rb +++ b/lib/license/finder/ext/yarn.rb @@ -2,7 +2,7 @@ module LicenseFinder class Yarn - INCOMPATIBLE_PACKAGE_REGEX = /(?[\w,\-]+)@(?(\d+\.?)+)/ + INCOMPATIBLE_PACKAGE_REGEX = /(?[\w,\-]+)@(?(\d+\.?)+)/.freeze PHANTOM_PACKAGE_REGEX = /workspace-aggregator-[a-zA-Z0-9]{8}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{12}/.freeze def possible_package_paths @@ -88,7 +88,7 @@ module LicenseFinder matches = json['data'].to_s.match(INCOMPATIBLE_PACKAGE_REGEX) return [] unless matches - [YarnPackage.new( matches['name'], matches['version'], spec_licenses: ['unknown'])] + [YarnPackage.new(matches['name'], matches['version'], spec_licenses: ['unknown'])] end end end -- cgit v1.2.3