Skip to content

Commit 492ae89

Browse files
committed
small tweak to readme
1 parent 7bdf80d commit 492ae89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ socket.on("connect") {data, ack in
1212
}
1313

1414
socket.on("currentAmount") {data, ack in
15-
if let cur = data?[0] as? Double {
15+
if let cur = data[0] as? Double {
1616
socket.emitWithAck("canUpdate", cur)(timeoutAfter: 0) {data in
1717
socket.emit("update", ["amount": cur + 2.50])
1818
}

0 commit comments

Comments
 (0)