Skip to content

Commit 0e99d04

Browse files
LainowRom1-B
andcommitted
Update inc/inventoryaction.class.php
Co-authored-by: Romain B. <8530352+Rom1-B@users.noreply.github.com>
1 parent 029894d commit 0e99d04

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

inc/inventoryaction.class.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,12 @@ public static function runPartialInventory(Agent $agent, $fromMA = false)
114114
return self::handleAgentResponse($response, $endpoint);
115115
}
116116
} catch (Exception $e) {
117-
}
118-
119-
if ($fromMA) {
120-
return false;
121-
} else {
122-
// not authorized
123-
return ['answer' => $e->getMessage()];
117+
if ($fromMA) {
118+
return false;
119+
} else {
120+
// not authorized
121+
return ['answer' => $e->getMessage()];
122+
}
124123
}
125124
}
126125

0 commit comments

Comments
 (0)