Skip to content

Commit

Permalink
Drop unnecessary requireNonNull call
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski committed May 4, 2024
1 parent 094fcc1 commit 440d8c2
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.usefulness.threetenbp

import android.content.res.AssetManager
import org.threeten.bp.jdk8.Jdk8Methods
import org.threeten.bp.zone.ZoneRules
import org.threeten.bp.zone.ZoneRulesCompat
import org.threeten.bp.zone.ZoneRulesException
Expand All @@ -20,7 +19,6 @@ internal class LazyZoneRulesProvider(private val assets: AssetManager) : ZoneRul
override fun provideZoneIds() = GeneratedZoneIdsProvider.getZoneIds().toHashSet()

override fun provideRules(zoneId: String, forCaching: Boolean): ZoneRules {
Jdk8Methods.requireNonNull(zoneId, "zoneId")
var rules = map[zoneId]
if (rules == null) {
rules = loadData(zoneId)
Expand Down

0 comments on commit 440d8c2

Please sign in to comment.