From de2220cc4d85185bfdd3d7bbdd85a62e4487bcd0 Mon Sep 17 00:00:00 2001 From: JP Simard Date: Sat, 9 Sep 2017 15:17:18 -0700 Subject: [PATCH] Remove 'overwrite' switch in DocumentationTests --- Tests/SwiftLintFrameworkTests/DocumentationTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/SwiftLintFrameworkTests/DocumentationTests.swift b/Tests/SwiftLintFrameworkTests/DocumentationTests.swift index c114faad9..7ccb16ac2 100644 --- a/Tests/SwiftLintFrameworkTests/DocumentationTests.swift +++ b/Tests/SwiftLintFrameworkTests/DocumentationTests.swift @@ -24,8 +24,8 @@ class DocumentationTests: XCTestCase { XCTAssertEqual(existingDocs, updatedDocs) - let overwrite = false // set this to true to overwrite existing docs with the generated ones - if existingDocs != updatedDocs && overwrite { + if existingDocs != updatedDocs { + // Overwrite Rules.md with latest version try updatedDocs.data(using: .utf8)?.write(to: URL(fileURLWithPath: docsPath)) } }