Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
imairi committed Feb 10, 2021
1 parent ff80371 commit 4d22590
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/RIBsCodeGen/Commands/DependencyCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,11 @@ private extension DependencyCommand {
.getSubStructures()
.filterByKeyKind(.class)

guard let parentBuilderClass = parentBuilderClasses.filterByKeyName("\(parent)Builder").first else {
guard parentBuilderClasses.filterByKeyName("\(parent)Builder").first != nil else {
print(" Not found \(parent)Builder class.".red.bold)
throw Error.failedToAddChildBuilder
}

guard let parentRouterInitializeLine = parentBuilderFile.lines.filter({ $0.content.contains("\(parent)Router") }).first else {
print(" Failed to find \(parent)Router initialize".red)
return
Expand Down

0 comments on commit 4d22590

Please sign in to comment.