Fix typo
authorVitaliy.Bibaev <vitaliy.bibaev@jetbrains.com>
Thu, 14 Dec 2017 17:54:08 +0000 (20:54 +0300)
committerVitaliy.Bibaev <vitaliy.bibaev@jetbrains.com>
Thu, 14 Dec 2017 17:54:08 +0000 (20:54 +0300)
plugins/stats-collector/src/com/intellij/stats/personalization/impl/DayImpl.kt

index 7c6cd734dad9b740e2bec60ac62027ff72c73cb0..6b3a8b871d3022b2eb3b27920f01453c7e3cac64 100644 (file)
@@ -33,8 +33,8 @@ class DayImpl(date: Date) : Day {
     }
 
     override fun compareTo(other: Day): Int {
-        if (year == year) {
-            if (month == month) {
+        if (year == other.year) {
+            if (month == other.month) {
                 return dayOfMonth.compareTo(other.dayOfMonth)
             }
             return month.compareTo(other.month)