Skip to content

Commit

Permalink
try to fix codacy error
Browse files Browse the repository at this point in the history
  • Loading branch information
Freezystem committed Nov 21, 2023
1 parent 2b1116f commit aac5b01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/registry/discoverers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ function resolve(opt) {
let DiscovererClass = getByName(opt);
if (DiscovererClass) return new DiscovererClass();

if (opt.startsWith("redis://") || opt.startsWith("rediss://")) return new Discoverers.Redis(opt);
if (opt.startsWith("redis://") || opt.startsWith("rediss://"))
return new Discoverers.Redis(opt);

if (opt.startsWith("etcd3://")) return new Discoverers.Etcd3(opt);

Expand Down

0 comments on commit aac5b01

Please sign in to comment.