Skip to content

Commit

Permalink
Redundant curly braces
Browse files Browse the repository at this point in the history
  • Loading branch information
viral32111 committed Jul 27, 2023
1 parent f0da3f9 commit 240f68b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/viral32111/library/GetVersions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import net.minecraft.MinecraftVersion
*/
fun getModVersion( modIdentifier: String = Main.MOD_ID, fabricLoader: FabricLoader = FabricLoader.getInstance() ): String =
fabricLoader.getModContainer( modIdentifier ).orElseThrow {
throw IllegalStateException( "Container for mod with ID '${ modIdentifier }' not found" )
throw IllegalStateException( "Container for mod with ID '$modIdentifier' not found" )
}.metadata.version.friendlyString

/**
Expand Down

0 comments on commit 240f68b

Please sign in to comment.