Skip to content

Commit b80db25

Browse files
codewithtamimAnGgIt886
authored andcommitted
refactor(): Remove unnecessary null check from subscriptionId (#3739)
- Replaced `subscriptionId.isNullOrEmpty()` with `subscriptionId.isEmpty()` since `subscriptionId` is not nullable. - This refactor simplifies the logic and improves code readability by eliminating the redundant null check.
1 parent 9413e84 commit b80db25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/neko/v2ray/util/V2rayConfigUtil.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ object V2rayConfigUtil {
566566
return returnPair
567567
}
568568

569-
if (subscriptionId.isNullOrEmpty()) {
569+
if (subscriptionId.isEmpty()) {
570570
return returnPair
571571
}
572572
try {

0 commit comments

Comments
 (0)