Skip to content

Commit

Permalink
remove unnecessary : in returned error when trying to parse the ext…
Browse files Browse the repository at this point in the history
…ended response
  • Loading branch information
cpuschma committed Apr 23, 2024
1 parent 9fd2332 commit 4dba82f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extend.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (l *Conn) Extended(er *ExtendedRequest) (*ExtendResponse, error) {
}
if len(packet.Children) < 2 || len(packet.Children[1].Children) < 4 {
return nil, fmt.Errorf(
"ldap: malformed extended response: expected 4 children, got: %d",
"ldap: malformed extended response: expected 4 children, got %d",
len(packet.Children),
)
}
Expand Down
2 changes: 1 addition & 1 deletion v3/extend.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (l *Conn) Extended(er *ExtendedRequest) (*ExtendResponse, error) {
}
if len(packet.Children) < 2 || len(packet.Children[1].Children) < 4 {
return nil, fmt.Errorf(
"ldap: malformed extended response: expected 4 children, got: %d",
"ldap: malformed extended response: expected 4 children, got %d",
len(packet.Children),
)
}
Expand Down

0 comments on commit 4dba82f

Please sign in to comment.