Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Mar 26, 2020
1 parent 7756f82 commit 98a26d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/quotes.ex
Expand Up @@ -35,13 +35,13 @@ defmodule Quotes do
case cwd =~ "/quotes" do
# coveralls-ignore-start
true ->
File.read!("/quotes.json") |> Jason.decode!()
File.read!("quotes.json") |> Jason.decode!()
false -> # temporarily cd into deps/quotes dir and read quotes.json file:
File.cd!("deps/quotes")
{:ok, cwd} = File.cwd
IO.inspect(cwd, label: "cwd 42")

data = File.read!("quotes.json"))
data = File.read!("quotes.json")
|> Jason.decode!()
File.cd!("../..")
data
Expand Down

0 comments on commit 98a26d4

Please sign in to comment.