Improve classifier version storage
This commit is contained in:
parent
3ec7217504
commit
146f51af01
@ -24,6 +24,7 @@ final class CapServer {
|
||||
get {
|
||||
do {
|
||||
let content = try String(contentsOf: classifierVersionFile)
|
||||
.trimmingCharacters(in: .whitespacesAndNewlines)
|
||||
guard let value = Int(content) else {
|
||||
log("Invalid classifier version: \(content)")
|
||||
return 0
|
||||
|
Loading…
Reference in New Issue
Block a user