Where possible, use built-in JSON instead of Jason
Note that it's not possible to replace any call where we encode and pretty print, as JSON doesn't have such functionality.
This commit is contained in:
@@ -33,7 +33,7 @@ defmodule Mix.Tasks.MusicBrainz.RefreshFixtures do
|
||||
{:ok, body} ->
|
||||
# store the fixture pretty printed
|
||||
dest = Path.join(@fixtures_folder, filename)
|
||||
content = body |> Jason.decode!() |> Jason.encode!(pretty: true)
|
||||
content = body |> JSON.decode!() |> Jason.encode!(pretty: true)
|
||||
File.write!(dest, content)
|
||||
|
||||
{:error, msg} ->
|
||||
|
||||
Reference in New Issue
Block a user