Skip to content

Commit

Permalink
Update multi-return conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
hostilefork committed Jul 28, 2023
1 parent a42f028 commit c5a9f1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion replpad.reb
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ use [
name: 'log

init: func [return: <none> port][
[# port.spec.path]: find/match as text! port.spec.ref log::
[@ port.spec.path]: find/match as text! port.spec.ref log::
assert [find ["info" "log" "warn" "error"] port.spec.path]
]

Expand Down
6 changes: 3 additions & 3 deletions storage.reb
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ if storage-enabled? [ ; Browser reported that it is storage-capable
if not all [
in port.spec 'ref
url? port.spec.ref
[# port.spec.path]: find/match form port.spec.ref storage::
[@ port.spec.path]: find/match form port.spec.ref storage::
find ["local" "session"] port.spec.path
][
fail "Could not initiate storage port"
Expand Down Expand Up @@ -332,7 +332,7 @@ if storage-enabled? [ ; Browser reported that it is storage-capable
]
]

write: lambda [port data] [
write: lambda [port data <local> dir] [
switch type-of port.spec.ref [
file! [
ensure [binary! text!] data
Expand All @@ -341,7 +341,7 @@ if storage-enabled? [ ; Browser reported that it is storage-capable
data: to binary! data ; could use AS ?
]

either exists? first split-path port.spec.ref [
either exists? [_ @dir]: split-path port.spec.ref [
storage-set port.spec.target form port.spec.ref enbase/base data 64
port
][
Expand Down

0 comments on commit c5a9f1a

Please sign in to comment.