aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@openmailbox.org>2018-02-13 20:59:09 -0300
committerMatias Linares <matiaslina@openmailbox.org>2018-02-13 20:59:09 -0300
commit1dfef25ea673072a9618e1d50d6a892d0ff76c02 (patch)
tree17e3e31871869f50bd2659529ed71a986c03a436
parent88cb91984373e21f6271192c49652dd5c51796b2 (diff)
downloadperl6-matrix-client-1dfef25ea673072a9618e1d50d6a892d0ff76c02.tar.gz
Remove variable redefinition
-rw-r--r--lib/Matrix/Client.pm64
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Matrix/Client.pm6 b/lib/Matrix/Client.pm6
index 9867c77..d21d077 100644
--- a/lib/Matrix/Client.pm6
+++ b/lib/Matrix/Client.pm6
@@ -30,13 +30,13 @@ method login(Str $username, Str $pass) returns Bool {
return if $!logged;
# Handle POST
- my $data = to-json {
+ my $post-data = to-json {
type => "m.login.password",
user => $username,
password => $pass
};
- my $res = $.post("/login", $data);
+ my $res = $.post("/login", $post-data);
spurt $!auth-file, $res.content;
my $data = from-json($res.content);