File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
src/main/java/com/googlesource/gerrit/plugins/qtcodereview Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 1
1
//
2
- // Copyright (C) 2020-21 The Qt Company
2
+ // Copyright (C) 2020-22 The Qt Company
3
3
//
4
4
5
5
package com .googlesource .gerrit .plugins .qtcodereview ;
@@ -305,12 +305,6 @@ public UiAction.Description getDescription(RevisionResource resource) {
305
305
} catch (ResourceConflictException e ) {
306
306
return null ; // stage not visible
307
307
}
308
- Boolean enabled ;
309
- // try {
310
- enabled = cd .isMergeable ();
311
- // } catch (OrmException e) {
312
- // throw new OrmRuntimeException("Could not determine mergeability", e);
313
- // }
314
308
315
309
ObjectId revId = resource .getPatchSet ().commitId ();
316
310
Map <String , String > params =
@@ -322,6 +316,6 @@ public UiAction.Description getDescription(RevisionResource resource) {
322
316
.setLabel (label )
323
317
.setTitle (Strings .emptyToNull (titlePattern .replace (params )))
324
318
.setVisible (true )
325
- .setEnabled (Boolean . TRUE . equals ( enabled ) );
319
+ .setEnabled (true );
326
320
}
327
321
}
You can’t perform that action at this time.
0 commit comments