Skip to content

Commit 08c90ce

Browse files
authored
Merge pull request #220 from laSinteZ/master
chore: removed trailing whitespaces, added newline
2 parents e8bb665 + 5247fcf commit 08c90ce

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ $ mix meditate --no-clear-screen
4040

4141
If you want to jump to a specific lesson, run it with `--koan=<koan name>`
4242
```sh
43-
$ mix meditate --koan=PatternMatching
43+
$ mix meditate --koan=PatternMatching
4444
```
4545

4646
Any typos on the koan name will show the complete list of koans, where you can pick any.

lib/koans/11_sigils.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,3 @@ defmodule Sigils do
3636
assert ~W(Hello #{1+1}) == ___
3737
end
3838
end
39-

lib/koans/18_genservers.ex

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ defmodule GenServers do
4444

4545
####
4646
# GenServer implementation
47-
47+
4848
def handle_call(:get_password, _from, current_password) do
49-
{:reply, current_password, current_password}
49+
{:reply, current_password, current_password}
5050
end
5151

5252
def handle_call(:get_manufacturer, _from, current_state) do
@@ -68,22 +68,22 @@ defmodule GenServers do
6868
def handle_call(:name_check, _from, current_state) do
6969
{:reply, "Congrats! Your process was successfully named.", current_state}
7070
end
71-
71+
7272
def handle_call({:unlock, password}, _from, current_password) do
7373
case password do
7474
password when password === current_password ->
7575
{:reply, {:ok, "Laptop unlocked!"}, current_password}
76-
_ ->
76+
_ ->
7777
{:reply, {:error, "Incorrect password!"}, current_password}
7878
end
7979
end
80-
80+
8181
def handle_cast({:change_password, old_password, new_password}, current_password) do
8282
case old_password do
8383
old_password when old_password == current_password ->
8484
{:noreply, new_password}
8585
_ ->
86-
{:noreply, current_password}
86+
{:noreply, current_password}
8787
end
8888
end
8989
end
@@ -147,7 +147,7 @@ defmodule GenServers do
147147
{_, response} = Laptop.unlock("EL!73")
148148
assert response == ___
149149

150-
{_, response} = Laptop.owner_name
150+
{_, response} = Laptop.owner_name
151151
assert response == ___
152152
end
153-
end
153+
end

0 commit comments

Comments
 (0)