Skip to content

Commit

Permalink
[format] remove useless comment
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingwang authored and liuxingwang committed Jan 3, 2020
1 parent 62b7371 commit 4cada14
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions agollo.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,6 @@ func (a *agollo) Watch() <-chan *ApolloResponse {
func fixWatchNamespace(namespace string) string {
// fix: 传给apollo类似test.properties这种namespace
// 通知回来的NamespaceName却没有.properties后缀,追加.properties后缀来修正此问题
// fix: 默认的application在apollo又是个特例,使用者在使用的时候不会传.properties后缀
// 而通知接口返回的namespace名字也不会带后缀,将默认application排除来修正此问题
ext := path.Ext(namespace)
if ext == "" {
namespace = namespace + "." + defaultConfigType
Expand Down

0 comments on commit 4cada14

Please sign in to comment.