Skip to content

Commit

Permalink
Run formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
KiKoS0 committed Sep 10, 2024
1 parent a1a9bc7 commit 538da75
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 1 addition & 3 deletions inngest/src/main/kotlin/com/inngest/InngestFunction.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ abstract class InngestFunction {
return this.config(builder)
}

fun id(): String {
return buildConfig().id!!
}
fun id(): String = buildConfig().id!!

internal fun toInngestFunction(): InternalInngestFunction {
val builder = InngestFunctionConfigBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,14 @@ class InngestFunctionConfigBuilder {
scope: ConcurrencyScope? = null,
): InngestFunctionConfigBuilder {
when (scope) {
ConcurrencyScope.ENVIRONMENT -> if (key == null) throw InngestInvalidConfigurationException("Concurrency key required with environment scope")
ConcurrencyScope.ACCOUNT -> if (key == null) throw InngestInvalidConfigurationException("Concurrency key required with account scope")
ConcurrencyScope.ENVIRONMENT ->
if (key == null) {
throw InngestInvalidConfigurationException("Concurrency key required with environment scope")
}
ConcurrencyScope.ACCOUNT ->
if (key == null) {
throw InngestInvalidConfigurationException("Concurrency key required with account scope")
}
ConcurrencyScope.FUNCTION -> {}
null -> {}
}
Expand Down

0 comments on commit 538da75

Please sign in to comment.