Skip to content

Commit

Permalink
Fix Fonts and Icons Analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
123FLO321 committed Feb 18, 2021
1 parent 8fa958e commit 4227df8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Resources/Views/Styles.leaf
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
#endif
</td>
<td style="vertical-align:middle">
#if(style.analysis):
#if(&& count(style.analysis.missingFonts) == 0):
#if(style.analysis != nil):
#if(count(style.analysis.missingFonts) == 0):
OK
#else:
Missing:<br>
Expand All @@ -95,7 +95,7 @@
#endif
</td>
<td style="vertical-align:middle">
#if(style.analysis):
#if(style.analysis != nil):
#if(count(style.analysis.missingIcons) == 0):
OK
#else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ internal class StylesController {

internal func getWithAnalysis(request: Request) -> EventLoopFuture<[Style]> {
return get(request: request).flatMap({ styles in
let analysisFutures = styles.filter({$0.external == false}).map({ style in
let analysisFutures = styles.filter({$0.external != true}).map({ style in
return self.analyse(request: request, id: style.id).map({ analysis in
return (id: style.id, analysis: analysis)
})
Expand Down

0 comments on commit 4227df8

Please sign in to comment.