Commit 96fde2c
committed
Return nil at the end of createScrapeConfigs
Currently the function returns the latest value of the "err" variable.
This isn't what should be happening. If we want to return an error,
we should do so in one of the `if err != nil {}` blocks. When
the function gets to the end, it should be considered as
successfuly executed.1 parent f2c8dd9 commit 96fde2c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
647 | 647 | | |
648 | 648 | | |
649 | 649 | | |
650 | | - | |
| 650 | + | |
651 | 651 | | |
652 | 652 | | |
653 | 653 | | |
| |||
0 commit comments