Drop unnecessary trap

If we are using a file, the trap is not defined in the first place,
so we don't need to undefined it.
This commit is contained in:
dacav 2025-04-22 23:31:55 +02:00 committed by Ritchie Cunningham
parent 86fbb6daba
commit 0cff8e7c41

1
imgbb
View File

@ -279,7 +279,6 @@ else
image_source_description="file '$filepath'"
TMP_IMG="$filepath" # Use the provided file path directly.
echo "Using image from file: $filepath"
trap '' EXIT # Clear trap if we are not using temp files.
fi
# Build curl options.