Skip to content

Commit 0f0d984

Browse files
committed
lint
1 parent 5ccdd49 commit 0f0d984

File tree

6 files changed

+5
-8
lines changed

6 files changed

+5
-8
lines changed

src/commonMain/kotlin/com.adamratzman.spotify/SpotifyApi.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,6 @@ open class SpotifyClientApi internal constructor(
521521
*/
522522
val player: ClientPlayerApi = ClientPlayerApi(this)
523523

524-
525524
private lateinit var userIdBacking: String
526525

527526
private fun initiatizeUserIdBacking(): String {
@@ -534,7 +533,6 @@ open class SpotifyClientApi internal constructor(
534533
*/
535534
val userId: String get() = if (::userIdBacking.isInitialized) userIdBacking else initiatizeUserIdBacking()
536535

537-
538536
/**
539537
* Stop all automatic functions like refreshToken or clearCache and shut down the scheduled
540538
* executor

src/commonTest/kotlin/com.adamratzman/spotify/pub/PublicArtistsApiTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import org.spekframework.spek2.style.specification.describe
1515

1616
class PublicArtistsApiTest : Spek({
1717
describe("Public Artists test") {
18-
val a = api?.artists?: return@describe
18+
val a = api?.artists ?: return@describe
1919
describe("get artists") {
2020
it("invalid artist") {
2121
assertNull(a.getArtist("adkjlasdf").complete())

src/commonTest/kotlin/com.adamratzman/spotify/pub/PublicFollowingApiTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import org.spekframework.spek2.style.specification.describe
1010

1111
class PublicFollowingApiTest : Spek({
1212
describe("Public Following test") {
13-
val f = api?.following?: return@describe
13+
val f = api?.following ?: return@describe
1414
describe("do users follow playlist") {
1515
it("invalid users, valid playlist") {
1616
assertFailsWith<SpotifyException.BadRequestException> { f.areFollowingPlaylist("37i9dQZF1DXcBWIGoYBM5M", "udontexist89").complete()[0] }

src/commonTest/kotlin/com.adamratzman/spotify/pub/PublicPlaylistsApiTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import org.spekframework.spek2.style.specification.describe
1414

1515
class PublicPlaylistsApiTest : Spek({
1616
describe("Public playlists test") {
17-
val p = api?.playlists?: return@describe
17+
val p = api?.playlists ?: return@describe
1818
describe("get user's playlists") {
1919
it("available user should return playlists") {
2020
assertTrue(p.getUserPlaylists("adamratzman1").complete().items.isNotEmpty())

src/commonTest/kotlin/com.adamratzman/spotify/pub/PublicTracksApiTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import org.spekframework.spek2.style.specification.describe
1313

1414
class PublicTracksApiTest : Spek({
1515
describe("Track API (Public View) test") {
16-
val t = api?.tracks?: return@describe
16+
val t = api?.tracks ?: return@describe
1717
describe("get track") {
1818
it("known track should return author name") {
1919
assertEquals("Bénabar", t.getTrack("5OT3k9lPxI2jkaryRK3Aop").complete()!!.artists[0].name)

src/jsTest/kotlin/com/adamratzman/spotify/CommonImpl.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ actual fun getEnvironmentVariable(name: String): String? {
77

88
actual fun Exception.stackTrace() = println(this)
99

10-
1110
external val process: Process
1211

1312
external interface Process {
@@ -16,4 +15,4 @@ external interface Process {
1615

1716
fun main() {
1817
// println(api.token)
19-
}
18+
}

0 commit comments

Comments
 (0)