Skip to content
This repository was archived by the owner on Nov 15, 2020. It is now read-only.
This repository was archived by the owner on Nov 15, 2020. It is now read-only.

cachedJSON function Compile Error #4

@Ruckt

Description

@Ruckt

This function below in the response protocol gives the following compile error: 'Call can throw, but it is not marked with 'try' and the error is not handled'

   private lazy var cachedJSON: JSON = {
        return JSON(data: self.data ?? Data())
    }()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions