Skip to content

Commit c602765

Browse files
committed
typo
1 parent 0e53b7c commit c602765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/ipfs/api/IPFS.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public List<MerkleNode> put(List<byte[]> data) throws IOException {
170170
}
171171

172172
public List<MerkleNode> put(String encoding, List<byte[]> data) throws IOException {
173-
if (!"json".equals(encoding) && "protobuf".equals(encoding))
173+
if (!"json".equals(encoding) && !"protobuf".equals(encoding))
174174
throw new IllegalArgumentException("Encoding must be json or protobuf");
175175
Multipart m = new Multipart("http://" + host + ":" + port + version+"object/put?stream-channels=true&encoding="+encoding, "UTF-8");
176176
for (byte[] f : data)

0 commit comments

Comments
 (0)