mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 01:15:44 +01:00
Peer-Review changes
This commit is contained in:
@@ -75,7 +75,7 @@ public class AvailablePluginResource {
|
||||
if (plugin.isPresent()) {
|
||||
return Response.ok(mapper.mapAvailable(plugin.get())).build();
|
||||
} else {
|
||||
throw notFound(entity(InstalledPluginDescriptor.class, name));
|
||||
throw notFound(entity("Plugin", name));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ public class InstalledPluginResource {
|
||||
if (pluginDto.isPresent()) {
|
||||
return Response.ok(mapper.mapInstalled(pluginDto.get())).build();
|
||||
} else {
|
||||
throw notFound(entity(InstalledPluginDescriptor.class, name));
|
||||
throw notFound(entity("Plugin", name));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user