@@ -44,7 +44,6 @@ import (
4444 "github.com/projectdiscovery/mapcidr"
4545 jarm "github.com/projectdiscovery/utils/crypto/jarm"
4646 errors "github.com/projectdiscovery/utils/errors"
47- errorutil "github.com/projectdiscovery/utils/errors"
4847 maputils "github.com/projectdiscovery/utils/maps"
4948 randint "github.com/projectdiscovery/utils/rand"
5049 stringsutil "github.com/projectdiscovery/utils/strings"
@@ -931,11 +930,11 @@ func init() {
931930 bLen = int (floatVal )
932931 }
933932 if bLen == 0 {
934- return nil , errorutil .New ("invalid padding length" )
933+ return nil , errors .New ("invalid padding length" )
935934 }
936935 bByte := []byte (toString (args [1 ]))
937936 if len (bByte ) == 0 {
938- return nil , errorutil .New ("invalid padding byte" )
937+ return nil , errors .New ("invalid padding byte" )
939938 }
940939 bData := []byte (toString (args [0 ]))
941940 dataLen := len (bData )
@@ -945,7 +944,7 @@ func init() {
945944
946945 padMode , ok := args [3 ].(string )
947946 if ! ok || (padMode != "prefix" && padMode != "suffix" ) {
948- return nil , errorutil .New ("padding mode must be 'prefix' or 'suffix'" )
947+ return nil , errors .New ("padding mode must be 'prefix' or 'suffix'" )
949948 }
950949
951950 paddingLen := bLen - dataLen
0 commit comments