Changeset 408 for binary-improvements2/WebServer/src/WebAPI/APIs/WebMods.cs
- Timestamp:
- Feb 22, 2023, 5:51:32 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/WebServer/src/WebAPI/APIs/WebMods.cs
r402 r408 11 11 writer.WriteBeginArray (); 12 12 13 bool first = true; 14 foreach (WebMod webMod in _parent.webMods) { 15 if (!first) { 13 for (int i = 0; i < _parent.webMods.Count; i++) { 14 WebMod webMod = _parent.webMods [i]; 15 16 if (i > 0) { 16 17 writer.WriteValueSeparator (); 17 18 } 18 first = false; 19 19 20 20 writer.WriteBeginObject (); 21 21 22 22 writer.WriteString ("name"); 23 23 writer.WriteNameSeparator (); … … 31 31 writer.WriteString (webModReactBundle); 32 32 } 33 33 34 34 string webModCssFile = webMod.CssPath; 35 35 if (webModCssFile != null) { … … 39 39 writer.WriteString (webModCssFile); 40 40 } 41 41 42 42 writer.WriteEndObject (); 43 43 } 44 44 45 45 writer.WriteEndArray (); 46 46 … … 54 54 } 55 55 56 public override int DefaultPermissionLevel () { 57 return 2000; 58 } 56 public override int DefaultPermissionLevel () => 2000; 59 57 } 60 58 }
Note:
See TracChangeset
for help on using the changeset viewer.