Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Noting that this usage required JENKINS-33377 before it can be fixed
  • Loading branch information
stephenc committed Mar 8, 2016
1 parent 16eb348 commit 0ef1c6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/model/UsageStatistics.java
Expand Up @@ -96,7 +96,7 @@ public UsageStatistics(String keyImage) {
* Returns true if it's time for us to check for new version.
*/
public boolean isDue() {
final Jenkins j = Jenkins.getInstanceOrNull();
final Jenkins j = Jenkins.getInstanceOrNull(); // TODO getInsance once JENKINS-33377 is merged
// user opted out or Jenkins not fully initialized. no data collection.
if (j == null || j.isUsageStatisticsCollected() || DISABLED || COMPLETED.compareTo(j.getInitLevel()) > 0) {
return false;
Expand Down

0 comments on commit 0ef1c6f

Please sign in to comment.