diff options
author | Matias Linares <matiaslina@openmailbox.org> | 2018-02-13 20:59:09 -0300 |
---|---|---|
committer | Matias Linares <matiaslina@openmailbox.org> | 2018-02-13 20:59:09 -0300 |
commit | 1dfef25ea673072a9618e1d50d6a892d0ff76c02 (patch) | |
tree | 17e3e31871869f50bd2659529ed71a986c03a436 | |
parent | 88cb91984373e21f6271192c49652dd5c51796b2 (diff) | |
download | perl6-matrix-client-1dfef25ea673072a9618e1d50d6a892d0ff76c02.tar.gz |
Remove variable redefinition
-rw-r--r-- | lib/Matrix/Client.pm6 | 4 |
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); |