Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhao committed Jul 14, 2022
1 parent 99b29d6 commit ef0e43b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ package cmd

import (
"fmt"
"log"
"os"

"github.com/spf13/cobra"
Expand Down Expand Up @@ -90,6 +89,6 @@ func initConfig() {
// If a config file is found, read it in.
if err := viper.ReadInConfig(); err != nil {
// fmt.Println("Using config file:", viper.ConfigFileUsed())
log.Fatalln("Using config file Error:", viper.ConfigFileUsed())
fmt.Println("you must have ela config ,please check or create .ela.ini")
}
}
1 change: 0 additions & 1 deletion eldap/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ func (o Option) SearchAllEntryByKindDN(DN string, Kind int) ([]model.EntryBase,
if err != nil {
return nil, err
}
res.Print()
EBIArr := make([]model.EntryBase, 0)
for _, entry := range res.Entries {
ebi := model.EntryBase{}
Expand Down

0 comments on commit ef0e43b

Please sign in to comment.