Skip to content

Commit

Permalink
Analysis: Suppress variable initializer is redundant warning
Browse files Browse the repository at this point in the history
Warning Message: "Variable 'obj' initializer is redundant"
  • Loading branch information
ParaskP7 committed Nov 17, 2022
1 parent 6c5296d commit 1315ae8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class InstanceStateUtils {
return defaultValue
}

var obj: T = defaultValue
@Suppress("VARIABLE_WITH_REDUNDANT_INITIALIZER") var obj: T = defaultValue

with(file) {
FileInputStream(this).use { input ->
Expand Down

0 comments on commit 1315ae8

Please sign in to comment.