ctucx.git: nimgit

[nimlang] nim-wrapper for libgit2

commit c423de3b9188c4a1fe5d09329275bcf5e39d2377
parent 8964e0f0e9734c676bd8419e9d8b304ef8986d20
Author: Leah (ctucx) <leah@ctu.cx>
Date: Tue, 16 Mar 2021 23:57:52 +0100

commit.nim: cleanup
1 file changed, 3 insertions(+), 7 deletions(-)
M
nimgit/commit.nim
|
10
+++-------
diff --git a/nimgit/commit.nim b/nimgit/commit.nim
@@ -9,16 +9,12 @@ proc lookupCommit* (repo: GitRepository, oid: GitObjectId): GitCommit =
         raise newException(CatchableError, "Commit lookup failed: " & $error.getResultCode)
 
 
-proc getObjectId* (commit: GitCommit): GitObjectId = 
-    result = git_commit_id(commit)
+proc getObjectId* (commit: GitCommit): GitObjectId = git_commit_id(commit)
 
 
-proc getSummary* (commit: GitCommit): string =
-    result = $git_commit_summary(commit)
+proc getSummary* (commit: GitCommit): string = $git_commit_summary(commit)
 
-
-proc getMessage* (commit: GitCommit): string =
-    result = $git_commit_message(commit)
+proc getMessage* (commit: GitCommit): string = $git_commit_message(commit)
 
 proc getShortMessage* (commit: GitCommit): string = commit.getSummary()