mirror of
https://github.com/tw93/Mole.git
synced 2026-02-16 02:01:11 +00:00
chore: auto format code
This commit is contained in:
@@ -85,9 +85,9 @@ scan_applications() {
|
|||||||
# Cache hit - return immediately
|
# Cache hit - return immediately
|
||||||
# Show brief flash of cache usage if in interactive mode
|
# Show brief flash of cache usage if in interactive mode
|
||||||
if [[ -t 2 ]]; then
|
if [[ -t 2 ]]; then
|
||||||
echo -e "${GREEN}Loading from cache...${NC}" >&2
|
echo -e "${GREEN}Loading from cache...${NC}" >&2
|
||||||
# Small sleep to let user see it (optional, but good for "feeling" the speed vs glitch)
|
# Small sleep to let user see it (optional, but good for "feeling" the speed vs glitch)
|
||||||
sleep 0.3
|
sleep 0.3
|
||||||
fi
|
fi
|
||||||
echo "$cache_file"
|
echo "$cache_file"
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
@@ -85,9 +85,9 @@ scan_applications() {
|
|||||||
# Cache hit - return immediately
|
# Cache hit - return immediately
|
||||||
# Show brief flash of cache usage if in interactive mode
|
# Show brief flash of cache usage if in interactive mode
|
||||||
if [[ -t 2 ]]; then
|
if [[ -t 2 ]]; then
|
||||||
echo -e "${GREEN}Loading from cache...${NC}" >&2
|
echo -e "${GREEN}Loading from cache...${NC}" >&2
|
||||||
# Small sleep to let user see it (optional, but good for "feeling" the speed vs glitch)
|
# Small sleep to let user see it (optional, but good for "feeling" the speed vs glitch)
|
||||||
sleep 0.3
|
sleep 0.3
|
||||||
fi
|
fi
|
||||||
echo "$cache_file"
|
echo "$cache_file"
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
@@ -79,7 +79,6 @@ truncate_by_display_width() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Fallback: Use pure bash character iteration
|
# Fallback: Use pure bash character iteration
|
||||||
# Since we need to know the width of *each* character to truncate at the right spot,
|
# Since we need to know the width of *each* character to truncate at the right spot,
|
||||||
# we cannot just use the total width formula on the whole string.
|
# we cannot just use the total width formula on the whole string.
|
||||||
|
|||||||
Reference in New Issue
Block a user