analyzer/finger: Reformat with spicy-format

This commit is contained in:
Arne Welzel 2024-09-05 17:02:05 +02:00
parent cde5662779
commit dae4b1fcd9

View file

@ -14,7 +14,9 @@ public type Request = unit {
: OptionalWhiteSpace;
switch {
-> : /\/W/ { self.whois = True; }
-> : /\/W/ {
self.whois = True;
}
-> : void;
};
@ -24,12 +26,12 @@ public type Request = unit {
# We require valid UTF-8 to weed out binary data.
self.user = self.arg[0].decode();
if ( |self.arg[1]| > 0 )
if (|self.arg[1]| > 0)
self.host = self.arg[1].decode();
}
on %done {
if ( |self.arg[0]| > 0 || self.whois )
if (|self.arg[0]| > 0 || self.whois)
spicy::accept_input();
}
@ -43,7 +45,7 @@ type ReplyLine = unit {
: NewLine;
on %done {
if ( |self.data| > 10 )
if (|self.data| > 10)
# Require some non-trivial output to accept.
spicy::accept_input();
}