Skip to content

Commit

Permalink
fixed linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
riteshjha committed Jun 16, 2024
1 parent dc36c9a commit 324ed72
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/masonite/cookies/Cookie.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from masonite.configuration import config


class Cookie:
def __init__(self, name, value, **options):
self.options = options
Expand Down Expand Up @@ -31,7 +32,7 @@ def render(self):

return response

def __get_option(self, key: str, default:any):
def __get_option(self, key: str, default: any):
"""
Get cookie options from config/session.py
if option key found in options then it return that
Expand All @@ -42,4 +43,4 @@ def __get_option(self, key: str, default:any):
return self.options[key]
else:
cookie = config('session.drivers.cookie')
return cookie[key] if key in cookie else default
return cookie[key] if key in cookie else default

0 comments on commit 324ed72

Please sign in to comment.