From 5d7161acd76837076d7d9d28883f431693a40588 Mon Sep 17 00:00:00 2001 From: Jessica Lord Date: Tue, 5 May 2015 15:26:29 -0700 Subject: [PATCH] Don't need to replace now, use module directly --- src/package.coffee | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/package.coffee b/src/package.coffee index 473b5dc33..8c67af2d9 100644 --- a/src/package.coffee +++ b/src/package.coffee @@ -25,11 +25,6 @@ class Package @resourcePathWithTrailingSlash ?= "#{atom.packages.resourcePath}#{path.sep}" packagePath?.startsWith(@resourcePathWithTrailingSlash) - @normalizeMetadata: (metadata) -> - if typeof metadata.repository is 'string' - normalizePackageData(metadata) - metadata.repository.url = metadata.repository.url.replace(/^git\+/, '') - @loadMetadata: (packagePath, ignoreErrors=false) -> packageName = path.basename(packagePath) if @isBundledPackagePath(packagePath) @@ -38,7 +33,7 @@ class Package if metadataPath = CSON.resolve(path.join(packagePath, 'package')) try metadata = CSON.readFileSync(metadataPath) - @normalizeMetadata(metadata) + normalizePackageData(metadata) catch error throw error unless ignoreErrors