Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
Refactor
  • Loading branch information
aukgit committed Apr 24, 2020
1 parent 15c941b commit e60bbda
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/controllers/controllerRoutes/AbstractGenericRouter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,15 @@ package controllers.controllerRoutes

import java.security.spec.InvalidParameterSpecException

import controllers.apis.CampaignsApiController
import controllers.controllerRoutes.traits.RouterActionPerformByIds
import controllers.webapi.core.AbstractRestWebApi
import javax.inject.Inject
import play.api.mvc.{ Action, AnyContent }
import play.api.routing.Router.Routes
import play.api.routing.SimpleRouter
import play.api.routing.sird._
import shared.com.ortb.enumeration.ControllerDefaultActionType
import shared.com.ortb.model.results.ResultWithBooleanModel
import shared.com.ortb.model.wrappers.http.ControllerGenericActionWrapper
import shared.com.ortb.persistent.schema.Tables._
import shared.io.helpers.NumberHelper

import scala.reflect.runtime.universe._
Expand Down Expand Up @@ -73,7 +70,7 @@ abstract class AbstractGenericRouter[TTable, TRow, TKey : TypeTag](
Some(httpFailedActionWrapper))
}

protected def performGetByIdAsInteger(id : String) : Action[AnyContent] = {
protected def performGetByIdAsInteger(id : String) : Action[AnyContent] = {
val idAsInt = NumberHelper.isInt(id)

if (idAsInt.isSuccess) {
Expand Down Expand Up @@ -118,5 +115,4 @@ abstract class AbstractGenericRouter[TTable, TRow, TKey : TypeTag](
case _ => throw new InvalidParameterSpecException("Id is not type of Integer or String")
}
}

}

0 comments on commit e60bbda

Please sign in to comment.