Skip to content

Commit d84ac85

Browse files
committed
Merge pull request #44 from zendesk/alistair/safer_requirements_check
Check for requirements.json without trying to read it
2 parents f8edad0 + 615b03a commit d84ac85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/zendesk_apps_support/package.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def has_location?
103103
end
104104

105105
def has_requirements?
106-
!requirements_json.nil?
106+
File.exist?(File.join(root, "requirements.json"))
107107
end
108108

109109
def is_requirements_only?

0 commit comments

Comments
 (0)