Skip to content

Commit 8ca84f4

Browse files
Update code to reflect code reivew changes.
1 parent e74d53f commit 8ca84f4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Packages/com.unity.inputsystem/InputSystem/Plugins/InputForUI/InputActionAssetVerifier.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,7 @@ public Context(InputActionAsset asset,
7070
private string GetAssetReference()
7171
{
7272
var path = AssetDatabase.GetAssetPath(asset);
73-
if (string.IsNullOrEmpty(path))
74-
{
75-
return asset.name;
76-
}
77-
return path;
73+
return string.IsNullOrEmpty(path) ? asset.name : path;
7874
}
7975

8076
private void ActionMapWarning(string actionMap, string problem)

0 commit comments

Comments
 (0)