Skip to content

Commit

Permalink
Remove the default values on ingestion.
Browse files Browse the repository at this point in the history
These would only cause problems in future, e.g. when reading a file in to
validate it, substituting defaults would alter the validation results.
  • Loading branch information
hainesr committed Feb 14, 2018
1 parent 383bbdb commit 77bcff8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/cff/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def encode_with(coder)
end

def init_with(coder)
@cff_version = coder["cff-version"] || DEFAULT_SPEC_VERSION
@message = coder["message"] || ""
@title = coder["title"] || ""
@cff_version = coder["cff-version"]
@message = coder["message"]
@title = coder["title"]
end

end
Expand Down

0 comments on commit 77bcff8

Please sign in to comment.