Whitespace OCD

This commit is contained in:
Magnus Åhall 2026-05-20 20:24:06 +02:00
parent 13467c2f28
commit d4e6c58256

View file

@ -14,7 +14,7 @@ DECLARE
BEGIN BEGIN
RAISE NOTICE '--------------------------'; RAISE NOTICE '--------------------------';
FOR node_data IN SELECT * FROM jsonb_array_elements(p_nodes) FOR node_data IN SELECT * FROM jsonb_array_elements(p_nodes)
LOOP LOOP
node_uuid = (node_data->>'UUID')::bpchar; node_uuid = (node_data->>'UUID')::bpchar;
node_updated = (node_data->>'Updated')::timestamptz; node_updated = (node_data->>'Updated')::timestamptz;
@ -58,7 +58,7 @@ BEGIN
CONTINUE; CONTINUE;
END IF; END IF;
/* The client could send a specific node again if it didn't receive the OK from this procedure before. */ /* The client could send a specific node again if it didn't receive the OK from this procedure before. */
IF db_updated = node_updated AND db_client = p_client_uuid AND db_client_seq = (node_data->>'ClientSequence')::int THEN IF db_updated = node_updated AND db_client = p_client_uuid AND db_client_seq = (node_data->>'ClientSequence')::int THEN
RAISE NOTICE '04, already recorded, %, %', db_client, db_client_seq; RAISE NOTICE '04, already recorded, %, %', db_client, db_client_seq;
@ -161,6 +161,6 @@ BEGIN
uuid = node_uuid; uuid = node_uuid;
END IF; END IF;
END LOOP; END LOOP;
END END
$$; $$;