Skip to content

Commit

Permalink
Merge pull request #133 from sul-dlss/useless_ternary
Browse files Browse the repository at this point in the history
Ternary unneeded because return is already boolean
  • Loading branch information
jmartin-sul committed Apr 3, 2018
2 parents df70d92 + 4001834 commit ffc7b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/moab/deposit_bag_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def required_bag_files_exist?
pathname = deposit_bag_pathname.join(filename)
result_array << single_error_hash(REQUIRED_FILE_NOT_FOUND, file_pathname: pathname) unless pathname.exist?
end
result_array.empty? ? true : false
result_array.empty?
end

def verify_version
Expand Down

0 comments on commit ffc7b01

Please sign in to comment.