Skip to content

Commit 8b5af86

Browse files
authored
Update init.dart
1 parent bb2b3cf commit 8b5af86

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/src/init.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ class Gemini implements GeminiInterface {
4949
: _impl = GeminiImpl(
5050
api: GeminiService(
5151
Dio(BaseOptions(
52-
baseUrl: baseURL != null
53-
? "$baseURL${version ?? Constants.defaultVersion}/"
54-
: '${Constants.baseUrl}${version ?? Constants.defaultVersion}/',
52+
baseUrl: '${baseURL ?? Constants.baseUrl}${version ?? Constants.defaultVersion}/',
5553
contentType: 'application/json',
5654
headers: headers,
5755
)),

0 commit comments

Comments
 (0)