diff --git a/Sources/Runner/Commands/Runner.swift b/Sources/Runner/Commands/Runner.swift index 631fc6fd..4e30d9c5 100644 --- a/Sources/Runner/Commands/Runner.swift +++ b/Sources/Runner/Commands/Runner.swift @@ -98,9 +98,9 @@ func runDanger(logger: Logger) throws { .filter(fileManager.fileExists) .first - if marathonLibPath != nil { - libArgs += ["-L", marathonLibPath!] - libArgs += ["-I", marathonLibPath!] + if let marathonLibPath = marathonLibPath { + libArgs += ["-L", marathonLibPath] + libArgs += ["-I", marathonLibPath] libArgs += ["-lDangerDependencies"] } }