mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
Remove 'overwrite' switch in DocumentationTests
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user