mirror of
https://github.com/atom/atom.git
synced 2026-02-16 17:45:24 -05:00
Check for url before replacing
This commit is contained in:
@@ -30,7 +30,7 @@ class Package
|
||||
normalizePackageData ?= require 'normalize-package-data'
|
||||
normalizePackageData(metadata)
|
||||
if metadata.repository?.type is 'git'
|
||||
metadata.repository.url = metadata.repository.url.replace(/^git\+/, '')
|
||||
metadata.repository.url = metadata.repository.url?.replace(/^git\+/, '')
|
||||
metadata
|
||||
|
||||
@loadMetadata: (packagePath, ignoreErrors=false) ->
|
||||
|
||||
Reference in New Issue
Block a user