mirror of
https://github.com/lxc/incus.git
synced 2026-02-05 09:46:19 +01:00
shared/api: Don't needlessly use format string functions
Signed-off-by: Nathan Chase <ntc477@utexas.edu>
This commit is contained in:
committed by
Stéphane Graber
parent
72b3baf3f7
commit
fd503dd227
@@ -1,6 +1,7 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
@@ -78,7 +79,7 @@ func (op *Operation) ToCertificateAddToken() (*CertificateAddToken, error) {
|
||||
|
||||
clientName, ok := req["name"].(string)
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("Failed to get client name")
|
||||
return nil, errors.New("Failed to get client name")
|
||||
}
|
||||
|
||||
secret, ok := op.Metadata["secret"].(string)
|
||||
|
||||
Reference in New Issue
Block a user