We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c18ed8e commit 245b774Copy full SHA for 245b774
1 file changed
app/controllers/api/v1/scrims/opponent_teams_controller.rb
@@ -114,7 +114,7 @@ def destroy
114
# Read operations (index/show) are allowed for all teams to enable discovery.
115
#
116
def set_opponent_team
117
- id = Integer(params[:id]) rescue nil
+ id = Integer(params[:id], exception: false)
118
return render json: { error: 'Opponent team not found' }, status: :not_found unless id
119
120
@opponent_team = OpponentTeam.find_by(id: id)
0 commit comments