Skip to content

Commit

Permalink
linted
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmancuso committed Nov 2, 2019
1 parent ec1bf8e commit 5561d1f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/http/controllers/TestController.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def change_404(self, request: Request):
def testing(self):
return 'test'

def json_response(self, request: Request):
def json_response(self):
return {'id': 2}

def post_test(self):
Expand Down
3 changes: 1 addition & 2 deletions app/http/controllers/WelcomeController.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
"""Welcome The User To Masonite."""

from src.masonite.view import View
from src.masonite.request import Request
from src.masonite.controllers import Controller


class WelcomeController(Controller):
"""Controller For Welcoming The User."""

def show(self, view: View, request: Request):
def show(self, view: View):
"""Show the welcome page.
Arguments:
Expand Down
2 changes: 1 addition & 1 deletion app/http/middleware/AddAttributeMiddleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class AddAttributeMiddleware:

def __init__(self, request: Request):
"""Inject Any Dependencies From The Service Container."""
self.request = Request
self.request = request

def before(self):
"""Run This Middleware Before The Route Executes."""
Expand Down
2 changes: 0 additions & 2 deletions config/auth.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Authentication Settings."""

from src.masonite import env

from app.User import User

"""Authentication Model
Expand Down

0 comments on commit 5561d1f

Please sign in to comment.