Skip to content

Commit

Permalink
fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Yiu authored and Tim Yiu committed Aug 24, 2023
1 parent 2555a90 commit b76a2bd
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/assignment/Assignment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ internal fun Assignment.canonicalize(): String {
sb.append(key.trim(), " ", value?.variant?.key?.trim(), " ")
}
return sb.toString()
}
}
2 changes: 1 addition & 1 deletion src/main/kotlin/assignment/AssignmentFilter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ internal class InMemoryAssignmentFilter(size: Int, ttlMillis: Long = DAY_MILLIS)
}
return track
}
}
}
2 changes: 1 addition & 1 deletion src/main/kotlin/assignment/AssignmentService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ internal fun Assignment.toAmplitudeEvent(): Event {
event.insertId =
"${this.user.userId} ${this.user.deviceId} ${this.canonicalize().hashCode()} ${this.timestamp / DAY_MILLIS}"
return event
}
}
2 changes: 1 addition & 1 deletion src/main/kotlin/util/Cache.kt
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ internal class Cache<K, V>(private val capacity: Int, private val ttlMillis: Lon
before!!.next = after
after!!.prev = before
}
}
}
2 changes: 1 addition & 1 deletion src/test/kotlin/assignment/AssignmentFilterTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,4 @@ class AssignmentFilterTest {
Thread.sleep(1050)
Assert.assertTrue(filter.shouldTrack(assignment2))
}
}
}
2 changes: 1 addition & 1 deletion src/test/kotlin/assignment/AssignmentServiceTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ class AssignmentServiceTest {
val expected = "user device ${canonicalization.hashCode()} ${assignment.timestamp / DAY_MILLIS}"
Assert.assertEquals(expected, event.insertId)
}
}
}
2 changes: 1 addition & 1 deletion src/test/kotlin/assignment/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ internal fun flagResult(
type: String = "release",
): FlagResult {
return FlagResult(Variant(variant), description, isDefaultVariant, expKey, deployed, type)
}
}

0 comments on commit b76a2bd

Please sign in to comment.