projects
/
zchunk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38c0609
)
Simplify public function
author
Jonathan Dieter
<jdieter@gmail.com>
Sat, 18 Sep 2021 16:04:47 +0000
(17:04 +0100)
committer
Jonathan Dieter
<jdieter@gmail.com>
Sat, 18 Sep 2021 16:04:47 +0000
(17:04 +0100)
Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
src/lib/hash/hash.c
patch
|
blob
|
history
diff --git
a/src/lib/hash/hash.c
b/src/lib/hash/hash.c
index 34cb59ebbf229f48c4cf9b636a8d3f2422a8f6f1..fc240e557b1f7c4b4536d6bd9e6255a198a0e8e6 100644
(file)
--- a/
src/lib/hash/hash.c
+++ b/
src/lib/hash/hash.c
@@
-546,11
+546,8
@@
char PUBLIC *zck_get_chunk_digest(zckChunk *item) {
}
char PUBLIC *zck_get_chunk_digest_uncompressed(zckChunk *item) {
- if(item == NULL)
- return NULL;
- if (!item->zck->has_uncompressed_source) {
+ if(item == NULL || !item->zck->has_uncompressed_source)
return NULL;
- }
return get_digest_string(item->digest_uncompressed, item->digest_size);
}