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