build: remove redundant not nil check for error

This commit is contained in:
Erica Marigold 2025-04-26 08:57:18 +01:00
parent fb8d0c1514
commit 749c2ae39d
Signed by: DevComp
SSH key fingerprint: SHA256:jD3oMT4WL3WHPJQbrjC3l5feNCnkv7ndW8nYaHX5wFw

View file

@ -39,7 +39,7 @@ func buildVm(srcPath string, artifactPath string, includesDir string, cmakeFlags
// Build the Luau VM using CMake
buildDir := path.Join(srcPath, "cmake")
buildDirErr := os.Mkdir(buildDir, os.ModePerm)
if buildDirErr != nil && !os.IsExist(buildDirErr) {
if !os.IsExist(buildDirErr) {
bail(buildDirErr)
}