Skip to content

Commit

Permalink
Replace deprecated readDataToEndOfFile with readDataToEndOfFileAndRet…
Browse files Browse the repository at this point in the history
…urnError
  • Loading branch information
vitorgalvao committed Mar 28, 2023
1 parent 9171d86 commit d46c685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Workflow/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ task.executableURL = $.NSURL.alloc.initFileURLWithPath("/usr/bin/networkQuality"
task.standardOutput = stdout
task.launchAndReturnError(false)
const dataOut = stdout.fileHandleForReading.readDataToEndOfFile
const dataOut = stdout.fileHandleForReading.readDataToEndOfFileAndReturnError(false)
const stringOut = $.NSString.alloc.initWithDataEncoding(dataOut, $.NSUTF8StringEncoding).js
// Prepare JSON
Expand Down

0 comments on commit d46c685

Please sign in to comment.