mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2026-01-31 15:53:10 +08:00
style(sdk): remove unnecessary else block
This commit is contained in:
@@ -172,11 +172,11 @@ func (e *NucleiEngine) init(ctx context.Context) error {
|
||||
}
|
||||
|
||||
if e.tmpDir == "" {
|
||||
if tmpDir, err := os.MkdirTemp("", "nuclei-tmp-*"); err != nil {
|
||||
tmpDir, err := os.MkdirTemp("", "nuclei-tmp-*")
|
||||
if err != nil {
|
||||
return err
|
||||
} else {
|
||||
e.tmpDir = tmpDir
|
||||
}
|
||||
e.tmpDir = tmpDir
|
||||
}
|
||||
|
||||
e.executerOpts = &protocols.ExecutorOptions{
|
||||
|
||||
Reference in New Issue
Block a user