Skip to content

Commit

Permalink
Remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hendych committed Aug 4, 2017
1 parent 45209eb commit 9e40e32
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion Pod/Classes/BufferedOutput.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ open class BufferedOutput: Output {

func retrieveLogs(_ completion: @escaping LogStoreRetrieveCompletionBlock) {
buffer.removeAll()
logStore
logStore.retrieveLogs(for: self, completion: completion)
}

Expand Down
2 changes: 1 addition & 1 deletion Pod/Classes/LogStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public class LogStore {
let libraryCachePaths = NSSearchPathForDirectoriesInDomains(.cachesDirectory,
.userDomainMask,
true)
let libraryCacheDirectoryPath = libraryCachePaths.first! as! String
let libraryCacheDirectoryPath = libraryCachePaths.first!
let filePath = "\(LogDatabaseDirectory)/\(LogDatabaseFileName)"
let databasePath = URL(fileURLWithPath: "\(libraryCacheDirectoryPath)/\(filePath)")

Expand Down
6 changes: 0 additions & 6 deletions Pod/Classes/Logger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,6 @@ public class Logger {

for setting in configuration.filterSettings {
let filter = setting.filterClass.init(logger: self, tagPattern: setting.tagPattern)
if filter is Filter == false {
continue
}

if let pluginSettings = setting.settings {
filter.configure(pluginSettings)
Expand All @@ -145,9 +142,6 @@ public class Logger {

for setting in configuration.outputSettings {
let output = setting.outputClass.init(logger: self, tagPattern: setting.tagPattern)
if output is Output == false {
continue
}

if let pluginSettings = setting.settings {
output.configure(pluginSettings)
Expand Down

0 comments on commit 9e40e32

Please sign in to comment.