Skip to content

Commit 480e473

Browse files
committed
Removed the unreachable code block and test coverage reached %100.
1 parent 6983b91 commit 480e473

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

mssql.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,7 @@ func (dsnAdapter SqlServerSourceNameAdapter) GetDataSourceName(dataSource gdbc.D
8787
dsn = dsn + user + ":" + password
8888
}
8989

90-
dsn = dsn + "@"
91-
if host == "" {
92-
return "", errors.New("host cannot be empty")
93-
}
94-
dsn = dsn + host
90+
dsn = dsn + "@" + host
9591

9692
if port != "" {
9793
dsn = dsn + ":" + port

0 commit comments

Comments
 (0)