Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass nil instead of a nil RDF::URI as subject to Ldp::Resource to avoid head request #1233

Merged
merged 1 commit into from
Apr 26, 2017

Conversation

cjcolvar
Copy link
Member

@cjcolvar cjcolvar commented Apr 20, 2017

I discovered this when working on external files. Ldp::Resource is checking for subject.nil? which is not true for RDF::URI.new(nil).
https://github.com/projecthydra/ldp/blob/master/lib/ldp/resource.rb#L42

This should avoid some head requests and speed up the spec tests a little.

Copy link
Contributor

@escowles escowles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@escowles escowles merged commit cc79053 into master Apr 26, 2017
@escowles escowles deleted the metadata_node_new_fix branch April 26, 2017 16:48
@dazza-codes dazza-codes mentioned this pull request May 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants