Minor form validation fix

This commit is contained in:
Imran Remtulla
2025-09-27 02:46:27 -04:00
parent 6830eb64d0
commit fef0120732

View File

@@ -53,11 +53,12 @@ class GitHub extends AppSource {
additionalValidators: [
(value) {
try {
if (Uri.parse(
'https://${value}/api.github.com',
).scheme.isNotEmpty) {
if (value != null && Uri.parse(value).scheme.isNotEmpty) {
throw true;
}
if (value != null) {
Uri.parse('https://${value}/api.github.com');
}
} catch (e) {
return tr('invalidInput');
}