style(rubocop): Lint/UselessAssignment

This commit is contained in:
Adam Cooke
2024-02-10 17:18:24 +00:00
parent 25d7d66b47
commit 7590a46234
12 changed files with 18 additions and 20 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ class IPPoolsController < ApplicationController
def destroy
@ip_pool.destroy
redirect_to_with_json :ip_pools, notice: "IP pool has been removed successfully."
rescue ActiveRecord::DeleteRestrictionError => e
rescue ActiveRecord::DeleteRestrictionError
redirect_to_with_json [:edit, @ip_pool], alert: "IP pool cannot be removed because it still has associated addresses or servers."
end