Skip to content

Commit cf83c52

Browse files
committed
feat: update withSurfRedis check to use get() method for improved clarity
1 parent 87c205c commit cf83c52

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

surf-api-gradle-plugin/src/main/kotlin/dev/slne/surf/surfapi/gradle/generators/pluginfiles/VelocityPluginFile.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class VelocityPluginFile(project: Project) : CommonPluginFile() {
8383
}
8484
}
8585

86-
if (extension.withSurfRedis.isPresent && !extension.surfRedisRelocation.isPresent) {
86+
if (extension.withSurfRedis.get() && !extension.surfRedisRelocation.isPresent) {
8787
register("surf-redis-velocity") {
8888
optional = false
8989
}

surf-api-gradle-plugin/src/main/kotlin/dev/slne/surf/surfapi/gradle/platform/paper/plugin/PaperPluginSurfPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ internal class PaperPluginSurfPlugin :
6767
registerRequired("surf-core-paper")
6868
}
6969

70-
if (extension.withSurfRedis.isPresent && !extension.surfRedisRelocation.isPresent) {
70+
if (extension.withSurfRedis.get() && !extension.surfRedisRelocation.isPresent) {
7171
registerRequired("surf-redis-paper")
7272
}
7373

0 commit comments

Comments
 (0)