mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-12-22 00:09:47 +01:00
fix sonarlint issue
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user