Skip to content

Commit

Permalink
swiftlint: fix colon violation
Browse files Browse the repository at this point in the history
  • Loading branch information
e-marchand committed Jan 17, 2018
1 parent ed5b84c commit 268c6e2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sources/FileProtection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ extension Path {
///
public func createFile(_ fileProtection: FileProtection) throws {
let manager = FileManager()
let attributes: [FileAttributeKey : Any] = [.protectionKey: fileProtection] // todo test
let attributes: [FileAttributeKey: Any] = [.protectionKey: fileProtection] // todo test

if !manager.createFile(atPath: _safeRawValue, contents: nil, attributes: attributes) {
throw FileKitError.createFileFail(path: self)
Expand Down
4 changes: 2 additions & 2 deletions Sources/Path.swift
Original file line number Diff line number Diff line change
Expand Up @@ -822,14 +822,14 @@ extension Path {
/// Returns the path's attributes.
///
/// this method does not follow links.
public var attributes: [FileAttributeKey : Any] {
public var attributes: [FileAttributeKey: Any] {
return (try? _fmWraper.fileManager.attributesOfItem(atPath: _safeRawValue)) ?? [:]
}

/// Modify attributes
///
/// this method does not follow links.
fileprivate func _setAttributes(_ attributes: [FileAttributeKey : Any]) throws {
fileprivate func _setAttributes(_ attributes: [FileAttributeKey: Any]) throws {
do {
try _fmWraper.fileManager.setAttributes(attributes, ofItemAtPath: self._safeRawValue)
} catch {
Expand Down
2 changes: 1 addition & 1 deletion Sources/TextFile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ open class TextFileStreamReader: TextFileStream {
}

// Implement `SequenceType` for `TextFileStreamReader`
extension TextFileStreamReader : Sequence {
extension TextFileStreamReader: Sequence {
/// - Returns: An iterator to be used for iterating over a `TextFileStreamReader` object.
public func makeIterator() -> AnyIterator<String> {
return AnyIterator {
Expand Down

0 comments on commit 268c6e2

Please sign in to comment.