diff --git a/src/Http/Controllers/Character/CharacterController.php b/src/Http/Controllers/Character/CharacterController.php
index <HASH>..<HASH> 100644
--- a/src/Http/Controllers/Character/CharacterController.php
+++ b/src/Http/Controllers/Character/CharacterController.php
@@ -47,19 +47,16 @@ class CharacterController extends Controller
     }
 
     /**
+     * @param \Symfony\Component\HttpFoundation\Request $request
+     *
      * @return mixed
      */
     public function getCharactersData(Request $request)
     {
 
-        switch ($request->filtered) {
-            case 'true':
-                $characters = auth()->user()->character();
-                break;
-            case 'false':
-                $characters = $this->getAllCharactersWithAffiliations();
-                break;
-        }
+        $characters = ($request->filtered === 'true') ?
+            auth()->user()->character() :
+            $this->getAllCharactersWithAffiliations();
 
         return Datatables::of($characters)
             ->editColumn('name', function ($row) {
Refactor a switch for a simple ternary operator.