Remove homepage nad installation link from Executables required properties

This commit is contained in:
Glavin Wiechert 2017-06-01 02:31:18 -03:00
parent 01df888aae
commit 5648aa34a1
1 changed files with 1 additions and 3 deletions

View File

@ -23,9 +23,7 @@ module.exports = class Executable
constructor: (options) ->
# Validation
if !options.cmd?
throw new Error("Command is required for an Executable.")
if !options.homepage? or !options.homepage?
throw new Error("Either a homepage or installation page is required for an Executable.")
throw new Error("The command (i.e. cmd property) is required for an Executable.")
@name = options.name
@cmd = options.cmd
@key = @cmd.split('-').join('_')