Skip to content

Commit

Permalink
fix: remove unused style
Browse files Browse the repository at this point in the history
Signed-off-by: Git'Fellow <[email protected]>
  • Loading branch information
solracsf authored Dec 5, 2024
1 parent 954dc6f commit 2f0282a
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions lib/Listener/LoadContactsFilesActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,11 @@

class LoadContactsFilesActions implements IEventListener {
public function handle(Event $event): void {
if (!($event instanceof LoadAdditionalScriptsEvent)) {
if (!$event instanceof LoadAdditionalScriptsEvent) {

Check warning on line 20 in lib/Listener/LoadContactsFilesActions.php

View check run for this annotation

Codecov / codecov/patch

lib/Listener/LoadContactsFilesActions.php#L20

Added line #L20 was not covered by tests
return;
}

Util::addStyle(Application::APP_ID, 'contacts-index');
Util::addStyle(Application::APP_ID, 'contacts-files-action');

// only available since Nc 28
if (method_exists(Util::class, 'addInitScript')) {
Util::addInitScript(Application::APP_ID, 'contacts-files-action');
} else {
Util::addScript(Application::APP_ID, 'contacts-files-action', 'files');
}
Util::addInitScript(Application::APP_ID, 'contacts-files-action');

Check warning on line 25 in lib/Listener/LoadContactsFilesActions.php

View check run for this annotation

Codecov / codecov/patch

lib/Listener/LoadContactsFilesActions.php#L25

Added line #L25 was not covered by tests
}
}

0 comments on commit 2f0282a

Please sign in to comment.