pantograph/lib/assets/custom_action_template.rb in pantograph-0.1.17 vs pantograph/lib/assets/custom_action_template.rb in pantograph-0.1.19
- old
+ new
@@ -36,10 +36,10 @@
PantographCore::ConfigItem.new(
key: :api_token,
env_name: '[[NAME_UP]]_API_TOKEN', # The name of the environment variable
description: 'API Token for [[NAME_CLASS]]', # a short description of this parameter
verify_block: proc do |value|
- unless (value and not value.empty?)
+ unless value and !value.empty?
UI.user_error!('No API token for [[NAME_CLASS]] given, pass using `api_token: "token"`')
end
end
),
PantographCore::ConfigItem.new(