Skip to content

Commit

Permalink
Update PrefsProcessor.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
catchpig authored Nov 5, 2019
1 parent 7666ed7 commit e605a61
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class PrefsProcessor : BaseProcessor() {
TypeKind.DECLARED -> {
if (element.asType().toString() == JAVA_STRING) {
getFunSpecBuilder = getFunSpecBuilder
.returns(STRING.copy(nullable = true))
.returns(STRING)
.addStatement("return sharedPrefs.getString(%S,%S)",prefsKey,"")
}
}
Expand Down Expand Up @@ -240,4 +240,4 @@ class PrefsProcessor : BaseProcessor() {
}
}
}
}
}

0 comments on commit e605a61

Please sign in to comment.