TimothyYe / godns

A dynamic DNS client tool that supports AliDNS, Cloudflare, Google Domains, DNSPod, HE.net & DuckDNS & DreamHost, etc, written in Go.
https://timothyye.github.io/godns/
Apache License 2.0
1.5k stars 220 forks source link

Refactor to remove some duplicate lines #169

Closed drewgingerich closed 2 years ago

drewgingerich commented 2 years ago

This PR is a small refactor that removes duplicate lines of code left after moving to the generic handler. It does this by pulling the handler out of the handler factory, leaving a handler + a provider factory.