[master] dfa562d67 gzip: Fold if statements together
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Wed Jun 26 09:25:07 UTC 2024
commit dfa562d671fcad09797180c4230bc3a2b8bd4c54
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Tue Nov 29 11:37:29 2022 +0100
gzip: Fold if statements together
diff --git a/bin/varnishd/cache/cache_gzip.c b/bin/varnishd/cache/cache_gzip.c
index 650aed8c3..0b64c87f4 100644
--- a/bin/varnishd/cache/cache_gzip.c
+++ b/bin/varnishd/cache/cache_gzip.c
@@ -678,10 +678,8 @@ vfp_testgunzip_pull(struct vfp_ctx *vc, struct vfp_entry *vfe, void *p,
} while (!VGZ_IbufEmpty(vg));
}
VGZ_UpdateObj(vc, vg, vr);
- if (vp == VFP_END) {
- if (vr != VGZ_END)
- return (VFP_Error(vc, "tGunzip failed"));
- }
+ if (vp == VFP_END && vr != VGZ_END)
+ return (VFP_Error(vc, "tGunzip failed"));
return (vp);
}
More information about the varnish-commit
mailing list