Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zyy17 committed Sep 17, 2024
1 parent 0dfea7d commit 4806010
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion controllers/greptimedbcluster/deployers/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
"context"
"fmt"

"github.com/GreptimeTeam/greptimedb-operator/controllers/constant"
monitoringv1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime"
Expand All @@ -28,6 +27,7 @@ import (

"github.com/GreptimeTeam/greptimedb-operator/apis/v1alpha1"
"github.com/GreptimeTeam/greptimedb-operator/controllers/common"
"github.com/GreptimeTeam/greptimedb-operator/controllers/constant"
"github.com/GreptimeTeam/greptimedb-operator/pkg/dbconfig"
"github.com/GreptimeTeam/greptimedb-operator/pkg/deployer"
)
Expand Down
6 changes: 2 additions & 4 deletions pkg/dbconfig/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,8 @@ func (c *LoggingConfig) ConfigureLogging(spec *v1alpha1.LoggingSpec) {

if spec.IsOnlyLogToStdout() {
c.Dir = nil
} else {
if spec.LogsDir != "" {
c.Dir = pointer.String(spec.LogsDir)
}
} else if spec.LogsDir != "" {
c.Dir = pointer.String(spec.LogsDir)
}

c.Level = pointer.String(string(spec.Level))
Expand Down

0 comments on commit 4806010

Please sign in to comment.