title: fruitless type test: a value of type Option[akka.actor.ActorSystem] cannot also be a akka.actor.ActorSystem
body: <p>I am using scapegoat for static code analysis i am getting a warning message</p>
  
  <pre><code>fruitless type test: a value of type Option[akka.actor.ActorSystem] cannot also be a akka.actor.ActorSystem
  </code></pre>
  
  <p>here is my code </p>
  
  <pre><code>object ActorSystemSetting extends ActorSystemSettingTrait{
    val config = ConfigFactory.load()
    val log = LoggerFactory.getLogger(this.getClass)
  
    var actorSystem  :  Option[ActorSystem] = None
     def createActorSystem: Option[ActorSystem] = {
        actorSystem = Option(ActorSystem("ArteciateActorSystem", config))
        actorSystem
      }
  
    def getActorSystem  :  Option[ActorSystem] ={
      if (actorSystem == None){
        createActorSystem
      }
      else{
       log.debug("ActorSystem is not null")
      }
      actorSystem
    } 
  }
  </code></pre>
  
  <p>In this section i am getting warning message 
  on the line </p>
  
  <pre><code>case Some(system: ActorSystem) =&gt;
  
  
  
  
     Option(ActorSystemSetting.getActorSystem) match {
            case Some(system: ActorSystem) =&gt;
              system.actorOf(Props[PaymentViaCreditDeletionActor]
                , name = "PaymentViaCreditDeletionActor")
            case None =&gt; log.debug("ActorSystem is null")
          }
  }
  </code></pre>