Unverified Commit 74e5ec4b authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

fix MSVC warning about control paths (fixes #3067) (#3068)

* [R-package] fix MSVC warning about control paths (fixes #3067)

* linting

* simplify
parent 7fe10fa1
...@@ -83,6 +83,9 @@ PredictionEarlyStopInstance CreatePredictionEarlyStopInstance(const std::string& ...@@ -83,6 +83,9 @@ PredictionEarlyStopInstance CreatePredictionEarlyStopInstance(const std::string&
} else { } else {
Log::Fatal("Unknown early stopping type: %s", type.c_str()); Log::Fatal("Unknown early stopping type: %s", type.c_str());
} }
// Fix for compiler warnings about reaching end of control
return CreateNone(config);
} }
} // namespace LightGBM } // namespace LightGBM
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment