mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-07-24 18:01:57 +00:00
Remove useless null check
The method CameraManager.getCameraIdList() is annotated with @NonNull. This fixes a warning reported by Android Studio.
This commit is contained in:
parent
5387644160
commit
e0423653c8
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ public final class LogUtils {
|
|||
CameraManager cameraManager = ServiceManager.getCameraManager();
|
||||
try {
|
||||
String[] cameraIds = cameraManager.getCameraIdList();
|
||||
if (cameraIds == null || cameraIds.length == 0) {
|
||||
if (cameraIds.length == 0) {
|
||||
builder.append("\n (none)");
|
||||
} else {
|
||||
for (String id : cameraIds) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue