fix sonarlint issue

This commit is contained in:
Konstantin Schaper
2020-12-01 09:13:47 +01:00
parent 3d7720663f
commit 3b3b8749b1

View File

@@ -95,10 +95,6 @@ public class GitTagCommand extends AbstractGitCommand implements TagCommand {
Tag tag = new Tag(request.getName(), revision, tagTime);
if (revObject == null) {
throw new InternalRepositoryException(repository, "could not create tag because revision does not exist");
}
RepositoryHookEvent hookEvent = createTagHookEvent(TagHookContextProvider.createHookEvent(tag));
eventBus.post(new PreReceiveRepositoryHookEvent(hookEvent));