Skip to content

Commit

Permalink
linted
Browse files Browse the repository at this point in the history
  • Loading branch information
CocoByte committed Dec 20, 2024
1 parent 0ca3a1b commit 7a491aa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/registrar/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,8 @@ def is_widescreen_mode(request):
is_excluded = any(exclude_path in request.path for exclude_path in exclude_paths)

# Return a dictionary with the widescreen mode status.
return {
"is_widescreen_mode": not is_excluded
}
return {"is_widescreen_mode": not is_excluded}


def is_widescreen_centered(request):
include_paths = [
Expand All @@ -123,7 +122,7 @@ def is_widescreen_centered(request):
is_excluded = any(exclude_path in request.path for exclude_path in exclude_paths)

# Check if the current path matches a path in included_paths or the root path.
is_widescreen_centered = any(path in request.path for path in include_paths) or request.path=="/"
is_widescreen_centered = any(path in request.path for path in include_paths) or request.path == "/"

# Return a dictionary with the widescreen mode status.
return {"is_widescreen_centered": is_widescreen_centered and not is_excluded}

0 comments on commit 7a491aa

Please sign in to comment.