[ARVADOS] updated: 1.3.0-952-g082ca2b56
Git user
git at public.curoverse.com
Fri May 24 18:01:08 UTC 2019
Summary of changes:
services/api/app/models/collection.rb | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
via 082ca2b561d7632365303f00d6d4c53f757e9584 (commit)
from 46f3bff06569f06ce84799635ad25727cfd095b5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 082ca2b561d7632365303f00d6d4c53f757e9584
Author: Lucas Di Pentima <ldipentima at veritasgenetics.com>
Date: Fri May 24 15:00:40 2019 -0300
15275: Simplifies method code.
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima at veritasgenetics.com>
diff --git a/services/api/app/models/collection.rb b/services/api/app/models/collection.rb
index 8ec4761df..775ebdb49 100644
--- a/services/api/app/models/collection.rb
+++ b/services/api/app/models/collection.rb
@@ -328,11 +328,7 @@ class Collection < ArvadosModel
def is_past_version?
# Check for the '_was' values just in case the update operation
# includes a change on current_version_uuid or uuid.
- if !new_record? && self.current_version_uuid_was != self.uuid_was
- return true
- else
- return false
- end
+ !(new_record? || self.current_version_uuid_was == self.uuid_was)
end
def should_preserve_version?
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list