Remove unneeded validation calls [SCI-1090]

This commit is contained in:
Oleksii Kriuchykhin 2017-03-09 17:20:27 +01:00
parent 0f8336e5a5
commit 456934464a
4 changed files with 4 additions and 4 deletions

View file

@ -50,7 +50,7 @@ class MyModuleCommentsController < ApplicationController
)
respond_to do |format|
if @comment.valid? && @comment.save
if @comment.save
# Generate activity
Activity.create(
type_of: :add_comment_to_module,

View file

@ -49,7 +49,7 @@ class ProjectCommentsController < ApplicationController
)
respond_to do |format|
if @comment.valid? && @comment.save
if @comment.save
# Generate activity
Activity.create(
type_of: :add_comment_to_project,

View file

@ -47,7 +47,7 @@ class ResultCommentsController < ApplicationController
)
respond_to do |format|
if @comment.valid? && @comment.save
if @comment.save
# Generate activity
Activity.create(

View file

@ -46,7 +46,7 @@ class StepCommentsController < ApplicationController
)
respond_to do |format|
if @comment.valid? && @comment.save
if @comment.save
# Generate activity (this can only occur in module,
# but nonetheless check if my module is not nil)
if @protocol.in_module?