Skip to content

Commit 5e766fd

Browse files
committed
Fixed issue with encodeAndSetContent() (#240).
1 parent f6edda9 commit 5e766fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/gitlab4j/api/models/RepositoryFile.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,13 @@ public void encodeAndSetContent(String content) {
150150
* Encodes the provided byte array using Base64 and sets it as the content. The encoding
151151
* property of this instance will be set to base64.
152152
*
153-
* @param content the byte[] content to encode and set as the base64 encoded String content
153+
* @param byteContent the byte[] content to encode and set as the base64 encoded String content
154154
*/
155155
@JsonIgnore
156156
public void encodeAndSetContent(byte[] byteContent) {
157157

158158
if (byteContent == null) {
159-
byteContent = null;
159+
this.content = null;
160160
return;
161161
}
162162

0 commit comments

Comments
 (0)