     case get_entry(revision) do
       {:finished, nil, _last_access} ->
         output = Path.join([@base_path, to_string(revision.id), "embed.js"])
+
         if File.exists?(output) do
           put_entry(revision, {:finished, nil, :os.system_time(:second)})
           {:ok, output}
         else
           :error
         end
+
       _ ->
         :error
     end

      @base_path
      |> File.ls!()
      |> Enum.each(fn id_string ->
          root = Path.join(@base_path, id_string)
          with {:ok, id} <- PrettyId.cast(id_string),
                entry <- get_entry_by_id(id)
          do
            case entry do
              nil ->
                File.rm_rf!(root)
                :ok
              {:finished, _error, last_accessed} ->
                if :os.system_time(:second) - last_accessed >= minutes_old * 60 do
                  File.rm_rf!(root)
                  delete_entry_by_id(id)
                end
                :ok
              _ ->
                :ok
            end
          else
            _ ->
              :ok
          end
        end)
        :unit
    else
      :unit
    end

    File.mkdir_p!(root)

    with {:ok, _p} <- Platform.setup(root, revision.elm_version),
         project <- %Project{
           dependencies: MapSet.new(revision.packages),
           elm_version: revision.elm_version
         },
         {:ok, error} <-
           Platform.compile(root, source: revision.elm_code, output: "embed.js", project: project) do
      put_entry(revision, {:finished, error, :os.system_time(:second)})
      {:ok, error}
    else
