Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-balitskyi committed Sep 17, 2024
1 parent a9d32d1 commit f3bff56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/blueprint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,11 +407,11 @@ const updateNamespaceStatus = (routes: Route[]): Route[] => {
// Group routes by namespace
const namespaceGroups = routes.reduce<Record<string, Route[]>>(
(acc, route) => {
if (!route.namespace?.path) return acc
if (route.namespace?.path == null) return acc

const namespacePath = route.namespace.path

if (!acc[namespacePath]) {
if (acc[namespacePath] == null) {
acc[namespacePath] = []
}

Expand All @@ -432,7 +432,7 @@ const updateNamespaceStatus = (routes: Route[]): Route[] => {
)

for (const route of routesInNamespace) {
if (route.namespace) {
if (route.namespace != null) {
route.namespace.isDeprecated = isNamespaceDeprecated
route.namespace.isUndocumented = isNamespaceUndocumented
}
Expand Down

0 comments on commit f3bff56

Please sign in to comment.