Skip to content

Commit

Permalink
fix: fix wifi_data.json when no information retrieved
Browse files Browse the repository at this point in the history
  • Loading branch information
SoraKenji committed Jan 15, 2025
1 parent d8515c7 commit d3b80e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/agent/actions/logretrieval/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ exports.start = (id, options, cb) => {
wifiDataPath = join(exports.tmpdir, 'wifi_data.json');

retrieveDataWifi((txt) => {
let jsonInformation = '';
let jsonInformation = ' ';
if (txt !== '') {
const txtParsed = JSON.parse(txt);
jsonInformation = JSON.stringify(txtParsed, null, 2);
Expand Down

0 comments on commit d3b80e8

Please sign in to comment.