Skip to content

Commit

Permalink
Remove unnecessary try-catch block from smithyCodegenVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
unexge committed Aug 8, 2022
1 parent d4aabdd commit c4235df
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,4 @@ class CargoTomlGenerator(
}
}

fun smithyCodegenVersion(): String =
try { Version.crateVersion() } catch (ex: Exception) { "unknown" }
fun smithyCodegenVersion(): String = Version.crateVersion()

0 comments on commit c4235df

Please sign in to comment.