Skip to content

Commit 1b14625

Browse files
committed
refactor: tidy leftovers
1 parent 84645c7 commit 1b14625

3 files changed

Lines changed: 1 addition & 4 deletions

File tree

internal/config/config.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ func parseConfigFromFile(configFile string) (Config, error) {
8686
return Config{}, statErr
8787
}
8888

89-
log.Printf("Check if '%s' exists\n", absPath)
90-
9189
if _, secondStatErr := os.Stat(absPath); os.IsNotExist(secondStatErr) {
9290
log.Printf("Config file '%s' does not exist\n", absPath)
9391
return Config{}, secondStatErr

internal/prometheus/prometheus.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ func WritePrometheus(w io.Writer, exposeProcessMetrics bool) {
5353
// initCtLogMetrics fetches all the CT Logs and registers one metric per log.
5454
func initCtLogMetrics() {
5555
logs := certificatetransparency.GetLogOperators()
56-
// logs := certificatetransparency.GetLogs()
5756

5857
for operator, urls := range logs {
5958
operator := operator // Copy variable to new scope

internal/web/broadcastmanager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func (bm *BroadcastManager) unregisterClient(c *client) {
2929
for i, client := range bm.clients {
3030
if c == client {
3131
// Copy the last element of the slice to the position of the removed element
32-
// Then remove the last element by reslicing
32+
// Then remove the last element by re-slicing
3333
bm.clients[i] = bm.clients[len(bm.clients)-1]
3434
bm.clients[len(bm.clients)-1] = nil
3535
bm.clients = bm.clients[:len(bm.clients)-1]

0 commit comments

Comments
 (0)