mirror of
https://github.com/Xevion/glance.git
synced 2025-12-16 20:11:54 -06:00
Use new range syntax
This commit is contained in:
@@ -315,7 +315,7 @@ func configFilesWatcher(
|
|||||||
|
|
||||||
// wait for file to maybe get created again
|
// wait for file to maybe get created again
|
||||||
// see https://github.com/glanceapp/glance/pull/358
|
// see https://github.com/glanceapp/glance/pull/358
|
||||||
for i := 0; i < 10; i++ {
|
for range 10 {
|
||||||
if _, err := os.Stat(event.Name); err == nil {
|
if _, err := os.Stat(event.Name); err == nil {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user