Skip to content

Commit 51532f8

Browse files
committed
Check if the JSON file exists before trying to delete it
1 parent 08acd6e commit 51532f8

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

Rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
# Reset search-index by deleting it every time
1414
preprocess do
15-
File.delete("output/search-index.json")
15+
File.delete("output/search-index.json") if File.exists?("output/search-index.json")
1616
end
1717

1818
compile '/static/*' do

static/search-index.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@
3030
"title": "Notifications",
3131
"section": "API/Activity"
3232
},
33-
{
34-
"url": "/v3/activity/settings/",
35-
"title": "Notification Settings",
36-
"section": "API/"
37-
},
3833
{
3934
"url": "/v3/activity/starring/",
4035
"title": "Starring",
@@ -85,11 +80,6 @@
8580
"title": "Git Commits",
8681
"section": "API/Git Data"
8782
},
88-
{
89-
"url": "/v3/git/import/",
90-
"title": "Git Import",
91-
"section": "API/"
92-
},
9383
{
9484
"url": "/v3/git/refs/",
9585
"title": "Git Refs",

0 commit comments

Comments
 (0)