Variable used within its own initial value

in the quiz app lesson 9/10 , the lesson sets the final line of the appdelgate file to // Call resume on the data task
dataTask.resume()
, however, Xcode throws an error saying the variable is used within its own initial value, so I thought this was my own issue but I’ve pulled down the solution for the lesson and it still returns the same bug

Hi Andy,
AppDelegate file???

Can you post your code in a reply?

When you do, put three back-ticks (```)on the line above the code and three back-ticks on the line after the code so that it is formatted nicely in the reply.

Sorry, it was in the quizmodel.swift , but cleaning the build folder has fixed it.

Great, glad you got it sorted out.