Skip to content

Commit

Permalink
Remove Dead Code
Browse files Browse the repository at this point in the history
  • Loading branch information
ShoyebWritesCode committed Aug 20, 2024
1 parent de82144 commit a3072b5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/Http/Controllers/ContactsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,7 @@ public function addColumn()

Auth::user()->account->contactCustomColumns()->create($column);

//send status 200 code
return response()->json([], 200);

return Redirect::back()->with('success', 'Column added.')->json([], 200);
return Redirect::back()->with('success', 'Column added.');
}
}

Expand Down

0 comments on commit a3072b5

Please sign in to comment.