From 715b42bb42557b8cbd6f38a0adf56ce035ca8d4a Mon Sep 17 00:00:00 2001 From: Joe Bryan Date: Thu, 22 Apr 2021 20:14:28 -0700 Subject: [PATCH] u3: tweaks u3s_sift_ud() conditional style --- pkg/urbit/noun/serial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/urbit/noun/serial.c b/pkg/urbit/noun/serial.c index db00bb1da..6480d2741 100644 --- a/pkg/urbit/noun/serial.c +++ b/pkg/urbit/noun/serial.c @@ -873,8 +873,8 @@ u3s_sift_ud_bytes(c3_w len_w, c3_y* byt_y) // +ape:ag: just 0 // - if ( !len_w ) return u3_none; - else if ( '0' == *byt_y ) return ( 1 == len_w ) ? (u3_noun)0 : u3_none; + if ( !len_w ) return u3_none; + if ( '0' == *byt_y ) return ( 1 == len_w ) ? (u3_noun)0 : u3_none; // +ted:ab: leading nonzero (checked above), plus up to 2 digits //