Skip to content

Commit

Permalink
Fix: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bosankus committed Nov 24, 2024
1 parent 3e68ae6 commit e8e30bd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class WeatherDataModelConverters (private val parser: Parser) {
) ?: "[]"

@TypeConverter
fun fromAlertJson(alertString: String): List<WeatherEntity.Alert?>? =
fun fromAlertJson(alertString: String): List<WeatherEntity.Alert?> =
parser.fromJson(
alertString,
object : TypeToken<List<WeatherEntity.Alert?>?>() {}.type
Expand All @@ -28,7 +28,7 @@ class WeatherDataModelConverters (private val parser: Parser) {
) ?: "[]"

@TypeConverter
fun fromDailyWeather(dailyWeatherString: String): List<WeatherEntity.Daily?>? =
fun fromDailyWeather(dailyWeatherString: String): List<WeatherEntity.Daily?> =
parser.fromJson(
dailyWeatherString,
object : TypeToken<List<WeatherEntity.Daily?>?>() {}.type
Expand All @@ -42,7 +42,7 @@ class WeatherDataModelConverters (private val parser: Parser) {
) ?: "[]"

@TypeConverter
fun fromHourlyWeather(hourlyWeatherString: String): List<WeatherEntity.Hourly?>? =
fun fromHourlyWeather(hourlyWeatherString: String): List<WeatherEntity.Hourly?> =
parser.fromJson(
hourlyWeatherString,
object : TypeToken<List<WeatherEntity.Hourly?>?>() {}.type
Expand Down

0 comments on commit e8e30bd

Please sign in to comment.