mirror of
https://github.com/softinio/Fishee.git
synced 2025-09-05 11:56:41 -07:00
Update gha
This commit is contained in:
parent
984cd30c29
commit
416b61611d
3 changed files with 8 additions and 5 deletions
|
@ -102,7 +102,7 @@ func writeFishHistory(to path: String, history: [FishHistoryEntry], backup: Bool
|
|||
///
|
||||
/// - Returns: List of ``FishHistoryEntry`` entries from history file.
|
||||
func parseFishHistory(from filePath: String) -> [FishHistoryEntry]? {
|
||||
guard let fileContents = try? String(contentsOfFile: filePath, encoding: String.Encoding.utf8) else {
|
||||
guard let fileContents = try? String(contentsOfFile: filePath, encoding: .utf8) else {
|
||||
print("Failed to open file.")
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue