1
0
mirror of https://github.com/TeamNewPipe/NewPipeExtractor synced 2025-10-06 00:23:15 +02:00

Refactor Description constructor

This commit is contained in:
David Asunmo
2025-06-08 15:47:24 +01:00
committed by Stypox
parent 89dab90aa7
commit ffb7c48e8a

View File

@@ -17,11 +17,7 @@ public class Description implements Serializable {
public Description(@Nullable final String content, final int type) {
this.type = type;
if (content == null) {
this.content = "";
} else {
this.content = content;
}
this.content = Objects.requireNonNullElse(content, "");
}
public String getContent() {