Remove homepage nad installation link from Executables required properties
This commit is contained in:
parent
01df888aae
commit
5648aa34a1
|
@ -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('_')
|
||||
|
|
Loading…
Reference in New Issue