This collision Enemy health code suddenly stopped working.

I can’t understand why my code isn’t working. I used this the other day for an hour and it worked perfectly. Then suddenly it just stopped working!
The float values will not subtract whatsoever. The collision is working, and the tag system as well.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class EnemyHealthSystem : MonoBehaviour 
{
	public float HP = 100;
	public float PistolDamage = 5;
	public GameObject DestroyMe;


	void Damager (float amount)
	{
		HP -= amount;
		Debug.Log ("amount" + amount);
	}

	void OnCollisionEnter (Collision col)
	{
		if (col.gameObject.tag == (" PistolAmmo "))
			Damager (PistolDamage);
		{
			Debug.Log ("HP"+ HP);
		}

	}
	void Update()
	{ 
		if (HP <= 0)
	    Destroy (DestroyMe);
	}
}

I’m a noob at coding but i figured out a fix for those interested,

if I called it before I used the method, and put the method in separate brackets everything seemed to work fine!

void OnCollisionEnter (Collision col)
{
if (col.gameObject.tag == (" PistolAmmo "))
HP -= PistolDamage;
{
TakeDamage (PistolDamage);
}