From 1dfef25ea673072a9618e1d50d6a892d0ff76c02 Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Tue, 13 Feb 2018 20:59:09 -0300 Subject: Remove variable redefinition --- lib/Matrix/Client.pm6 | 4 ++-- 1 file 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); -- cgit v1.2.3-70-g09d2