SDL: SDL_HasPrimarySelectionText: fix -Wunreachable-code-return warning.

From 5fba31f6fba62e3c3199444865da9f6d460e2fc9 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sat, 17 Sep 2022 00:51:00 +0300
Subject: [PATCH] SDL_HasPrimarySelectionText: fix -Wunreachable-code-return
 warning.

---
 src/video/SDL_clipboard.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/video/SDL_clipboard.c b/src/video/SDL_clipboard.c
index bee570dea8f..b5ea5ed533e 100644
--- a/src/video/SDL_clipboard.c
+++ b/src/video/SDL_clipboard.c
@@ -141,13 +141,12 @@ SDL_HasPrimarySelectionText(void)
 
     if (_this->HasPrimarySelectionText) {
         return _this->HasPrimarySelectionText(_this);
-    } else {
-        if (_this->primary_selection_text && _this->primary_selection_text[0] != '\0') {
-            return SDL_TRUE;
-        } else {
-            return SDL_FALSE;
-        }
     }
+
+    if (_this->primary_selection_text && _this->primary_selection_text[0] != '\0') {
+        return SDL_TRUE;
+    }
+
     return SDL_FALSE;
 }