Skip to content

Commit 4827426

Browse files
committed
Correct case when detecting format.
1 parent 58fe7f3 commit 4827426

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

storage/ioformats/src/main/java/org/openscience/cdk/io/formats/INChIPlainTextFormat.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,7 @@ public String getWriterClassName() {
7474
/** {@inheritDoc} */
7575
@Override
7676
public boolean matches(int lineNumber, String line) {
77-
if (line.startsWith("INChI=")) {
78-
return true;
79-
}
80-
return false;
77+
return line.startsWith("InChI=");
8178
}
8279

8380
/** {@inheritDoc} */

0 commit comments

Comments
 (0)