Skip to content

Commit

Permalink
Fix resCondition setvar optional
Browse files Browse the repository at this point in the history
Signed-off-by: paulober <44974737+paulober@users.noreply.github.com>
  • Loading branch information
paulober committed Sep 8, 2024
1 parent 5e51918 commit 8a69035
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Sources/QPL/QPL.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public class QPLReader {
guard zipFileURI.isFileURL && FileManager.default.fileExists(atPath: zipFileURI.absoluteURL.path(percentEncoded: false), isDirectory: &isNotADirectory) && !isNotADirectory.boolValue else {
throw QPLReaderError.invalidZipURI
}
var target = URL(fileURLWithPath: "qpl")
let tempDir = FileManager.default.temporaryDirectory
var target = tempDir.appendingPathComponent("qpl")
if FileManager.default.fileExists(atPath: target.path(percentEncoded: false)) {
try FileManager.default.removeItem(at: target)
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/QTI/DTOs/ResProcessing/RespCondition.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import XMLCoder
public struct RespCondition: Codable {
public var doContinue: String
public var conditionVar: ConditionVar
public var setVar: SetVar
public var setVar: SetVar?
public var displayFeedback: DisplayFeedback?

func isContinue() -> Bool {
Expand Down

0 comments on commit 8a69035

Please sign in to comment.