Skip to content

Commit caffa31

Browse files
authored
Simplify build profile loading logic
Removed unnecessary check for build profile define symbol.
1 parent 3a2abf9 commit caffa31

File tree

1 file changed

+0
-4
lines changed
  • dist/default-build-script/Assets/Editor/UnityBuilderAction

1 file changed

+0
-4
lines changed

dist/default-build-script/Assets/Editor/UnityBuilderAction/Builder.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ public static void BuildProject()
6666
var buildProfile = AssetDatabase.LoadAssetAtPath<BuildProfile>(buildProfilePath)
6767
?? throw new Exception("Build profile file not found at path: " + buildProfilePath);
6868

69-
#if !BUILD_PROFILE_LOADED
70-
throw new Exception("Build profile's define symbol not present before script execution; shouldn't happen");
71-
#endif // BUILD_PROFILE_LOADED
72-
7369
// no need to set active profile, as already set by `-activeBuildProfile` CLI argument
7470
// BuildProfile.SetActiveBuildProfile(buildProfile);
7571
Debug.Log($"build profile: {buildProfile.name}");

0 commit comments

Comments
 (0)