diff options
author | 2019-12-19 22:47:22 -0800 | |
---|---|---|
committer | 2019-12-19 22:47:22 -0800 | |
commit | 889e513e07338f5e78a33e29647091e7ca64ea66 (patch) | |
tree | 6062fcb6fa6471cc0b0c05d3ca9e06e33fc8104a /app | |
parent | rubocop: autofix (diff) | |
download | packages-5-889e513e07338f5e78a33e29647091e7ca64ea66.tar.gz packages-5-889e513e07338f5e78a33e29647091e7ca64ea66.tar.bz2 packages-5-889e513e07338f5e78a33e29647091e7ca64ea66.zip |
rubocop: Lint/AssignmentInCondition
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'app')
-rw-r--r-- | app/models/category.rb | 2 | ||||
-rw-r--r-- | app/models/change.rb | 2 | ||||
-rw-r--r-- | app/models/commit.rb | 2 | ||||
-rw-r--r-- | app/models/package.rb | 2 | ||||
-rw-r--r-- | app/models/useflag.rb | 2 | ||||
-rw-r--r-- | app/models/version.rb | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/app/models/category.rb b/app/models/category.rb index 2436827..03c27ce 100644 --- a/app/models/category.rb +++ b/app/models/category.rb @@ -24,7 +24,7 @@ class Category @created_at ||= DateTime.now @updated_at = DateTime.now ATTRIBUTES.each_with_object({}) do |attr, hash| - if value = send(attr) + if (value = send(attr)) hash[attr] = value end end diff --git a/app/models/change.rb b/app/models/change.rb index 4c68df8..4b876e1 100644 --- a/app/models/change.rb +++ b/app/models/change.rb @@ -26,7 +26,7 @@ class Change @created_at ||= DateTime.now @updated_at = DateTime.now ATTRIBUTES.each_with_object({}) do |attr, hash| - if value = send(attr) + if (value = send(attr)) hash[attr] = value end end diff --git a/app/models/commit.rb b/app/models/commit.rb index 5008f08..62f8d50 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -24,7 +24,7 @@ class Commit @created_at ||= DateTime.now @updated_at = DateTime.now ATTRIBUTES.each_with_object({}) do |attr, hash| - if value = send(attr) + if (value = send(attr)) hash[attr] = value end end diff --git a/app/models/package.rb b/app/models/package.rb index fc25799..f2c0e69 100644 --- a/app/models/package.rb +++ b/app/models/package.rb @@ -35,7 +35,7 @@ class Package @created_at ||= DateTime.now @updated_at = DateTime.now ATTRIBUTES.each_with_object({}) do |attr, hash| - if value = send(attr) + if (value = send(attr)) hash[attr] = value end end diff --git a/app/models/useflag.rb b/app/models/useflag.rb index f0e1698..768b1f7 100644 --- a/app/models/useflag.rb +++ b/app/models/useflag.rb @@ -26,7 +26,7 @@ class Useflag @created_at ||= DateTime.now @updated_at = DateTime.now ATTRIBUTES.each_with_object({}) do |attr, hash| - if value = send(attr) + if (value = send(attr)) hash[attr] = value end end diff --git a/app/models/version.rb b/app/models/version.rb index ce84a8d..77b1ca7 100644 --- a/app/models/version.rb +++ b/app/models/version.rb @@ -40,7 +40,7 @@ class Version @updated_at = DateTime.now ATTRIBUTES.each_with_object({}) do |attr, hash| - if value = send(attr) + if (value = send(attr)) hash[attr] = value end end |