mirror of
https://github.com/urbit/shrub.git
synced 2024-12-13 16:03:36 +03:00
better type safety in %eyre injection
This commit is contained in:
parent
6e26ecd5d3
commit
6977515ead
@ -757,11 +757,14 @@
|
||||
=+ bek=-:(need (tome p.tee))
|
||||
=+ bik=?+(r.bek bek [%ud %0] bek(r da/now))
|
||||
=- (pass-note tee (ford-req bik [%flag [p.sih `~] -]))
|
||||
=- `silk`[%cast %mime `cay(q.q -)]
|
||||
?. ?=([%ud 0] r.bek) q.q.cay
|
||||
?+ p.cay q.q.cay :: inject dependency long-poll
|
||||
%urb =| urb=[[%html ~] [[%head ~] marl] [[%body ~] manx marl] ~]
|
||||
.*(.(urb q.q.cay) !=((inject p.sih urb)))
|
||||
=- `silk`[%cast %mime `[p.cay -]]
|
||||
?. ?=([%ud 0] r.bek) q.cay
|
||||
?+ p.cay q.cay :: inject dependency long-poll
|
||||
%urb =< (slam !>(.) q.cay)
|
||||
|= urb=manx
|
||||
~| %malformed-urb
|
||||
?> ?=([[%html ~] [[%head ~] *] [[%body ~] ^] ~] urb)
|
||||
(inject p.sih urb)
|
||||
==
|
||||
~| q.q.cay
|
||||
=+ ((hard ,[mit=mite rez=octs]) q.q.cay)
|
||||
|
Loading…
Reference in New Issue
Block a user