Skip to content

Commit 5a39ff0

Browse files
add default for switch statement (#752)
1 parent 270c54f commit 5a39ff0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libmongoc/src/mongoc/mongoc-server-api.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ const char *
2222
mongoc_server_api_version_to_string (mongoc_server_api_version_t version)
2323
{
2424
switch (version) {
25-
case MONGOC_SERVER_API_V1:
26-
return "1";
25+
case MONGOC_SERVER_API_V1:
26+
return "1";
27+
default:
28+
return NULL;
2729
}
28-
29-
return NULL;
3030
}
3131

3232
bool

0 commit comments

Comments
 (0)