6203: Apply special case only to a 0-byte manifest: don't ignore white space.
authorTom Clegg <tom@curoverse.com>
Mon, 8 Jun 2015 05:50:30 +0000 (01:50 -0400)
committerTom Clegg <tom@curoverse.com>
Mon, 8 Jun 2015 05:59:35 +0000 (01:59 -0400)
services/api/app/models/collection.rb

index 95154c79cab8387be3c5ba42679bfb1934017f00..c4740f96eb4373552ef15130187750fc3b6812ce 100644 (file)
@@ -213,7 +213,7 @@ class Collection < ArvadosModel
     # for each locator. Return a new manifest in which each locator
     # has been replaced by the block's return value.
     return nil if !manifest
-    return '' if !manifest.present?
+    return '' if manifest == ''
 
     new_lines = []
     lines = manifest.split("\n")