IsEnabled returns true if the database analyzer should be used. Returns true for both `true` and `"only"` settings.
()
| 132 | // IsEnabled returns true if the database analyzer should be used. |
| 133 | // Returns true for both `true` and `"only"` settings. |
| 134 | func (a AnalyzerDatabase) IsEnabled() bool { |
| 135 | if a.isOnly { |
| 136 | return true |
| 137 | } |
| 138 | return a.value == nil || *a.value |
| 139 | } |
| 140 | |
| 141 | // IsOnly returns true if the analyzer is set to "only" mode. |
| 142 | func (a AnalyzerDatabase) IsOnly() bool { |