Merge "Fix putTopic hook firing"

This commit is contained in:
Dave Borowitz 2015-11-11 19:19:21 +00:00 committed by Gerrit Code Review
commit 2df725626c

View File

@ -101,8 +101,8 @@ public class PutTopic implements RestModifyView<ChangeResource, Input>,
@Override @Override
public void updateChange(ChangeContext ctx) throws OrmException { public void updateChange(ChangeContext ctx) throws OrmException {
change = ctx.getChange(); change = ctx.getChange();
String newTopicName = Strings.nullToEmpty(input.topic); newTopicName = Strings.nullToEmpty(input.topic);
String oldTopicName = Strings.nullToEmpty(change.getTopic()); oldTopicName = Strings.nullToEmpty(change.getTopic());
if (oldTopicName.equals(newTopicName)) { if (oldTopicName.equals(newTopicName)) {
return; return;
} }