Skip to content

Commit

Permalink
Refactor "shouldCompile" check in KataGoModel
Browse files Browse the repository at this point in the history
- This is a minor modification for the "shouldCompile" check in KataGoModel.
  • Loading branch information
ChinChangYang committed Nov 12, 2023
1 parent e1bf619 commit c7840d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/coremlmodel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ class KataGoModel {
if !shouldCompile {
// Check permanent compiled model is reachable
do {
shouldCompile = try !permanentURL.checkResourceIsReachable()
shouldCompile = try (!permanentURL.checkResourceIsReachable())

if (shouldCompile) {
Logger().info("Compiling CoreML model because the permanent URL is not reachable: \(permanentURL)");
Expand Down

0 comments on commit c7840d7

Please sign in to comment.