Merge branch '1968-monitor-disk-usage'
[arvados.git] / services / api / app / controllers / arvados / v1 / users_controller.rb
index 08368cb5ef110d6181dcdd0f4f696adacba48eee..c2a32f02f1b7e0e68bd8da293e34a0269308b4c0 100644 (file)
@@ -74,7 +74,7 @@ class Arvados::V1::UsersController < ApplicationController
                                   head_uuid: required_uuids).
           collect(&:head_uuid)
         todo_uuids = required_uuids - signed_uuids
-        if todo_uuids == []
+        if todo_uuids.empty?
           @object.update_attributes is_active: true
           logger.info "User #{@object.uuid} activated"
         else
@@ -147,10 +147,10 @@ class Arvados::V1::UsersController < ApplicationController
 
   protected
 
-  def self._setup_requires_parameters 
+  def self._setup_requires_parameters
     {
       send_notification_email: { type: 'boolean', required: true },
-    }  
+    }
   end
 
 end