PhilYue commented on a change in pull request #1626:
URL: https://github.com/apache/dubbo-go/pull/1626#discussion_r759976221



##########
File path: config/config_loader_options.go
##########
@@ -155,11 +161,11 @@ func userHomeDir() string {
 
 // checkGenre check Genre
 func checkGenre(genre string) error {
-       genres := []string{"json", "toml", "yaml", "yml"}
+       genres := []string{"json", "toml", "yaml", "yml", "properties"}
        sort.Strings(genres)
        idx := sort.SearchStrings(genres, genre)
        if genres[idx] != genre {

Review comment:
       这里的判断是不是需要判断边界情况 idx == len(genres) || genres[idx] != genre




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to