Skip to content

Commit

Permalink
Suppress an unwarranted Scrutinizer warning
Browse files Browse the repository at this point in the history
The method in question doesn't exist before NC28 but we already check for
that so there's no point to nag about it.
  • Loading branch information
paulijar committed Jan 7, 2024
1 parent 04cb463 commit 93b0d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Utility/HtmlUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public static function addWebpackScript(string $name) {
$manifest = self::getManifest();
$hashedName = \substr($manifest["$name.js"], 0, -3); // the extension is cropped from the name in $manifest
if (\method_exists('\OCP\Util', 'addInitScript')) {
\OCP\Util::addInitScript('music', '../dist/' . $hashedName);
\OCP\Util::/** @scrutinizer ignore-call */addInitScript('music', '../dist/' . $hashedName);
} else {
\OCP\Util::addScript('music', '../dist/' . $hashedName);
}
Expand Down

0 comments on commit 93b0d2e

Please # to comment.