Skip to content

Commit

Permalink
Rollback useless variable declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
ppouchin committed Oct 3, 2024
1 parent f41d467 commit adb9493
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions src/main/java/fr/igred/ij/plugin/OMEROMacroExtension.java
Original file line number Diff line number Diff line change
Expand Up @@ -1457,17 +1457,16 @@ public ExtensionDescriptor[] getExtensionFunctions() {

@Override
public String handleExtension(String name, Object[] args) {
long id;
long id1;
long id2;
String type;
String type1;
String type2;
String property;
String tableName;
String path;
String results = null;
ImagePlus imp;
long id;
long id1;
long id2;
String type;
String type1;
String type2;
String property;
String tableName;
String path;
String results = null;
switch (name) {
case "connectToOMERO":
String host = ((String) args[0]);
Expand Down Expand Up @@ -1605,7 +1604,7 @@ public String handleExtension(String name, Object[] args) {

case "getImage":
id = ((Double) args[0]).longValue();
imp = getImage(id, (String) args[1]);
ImagePlus imp = getImage(id, (String) args[1]);
if (imp != null) {
imp.show();
results = String.valueOf(imp.getID());
Expand Down

0 comments on commit adb9493

Please sign in to comment.