Skip to content

Commit

Permalink
code style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
striezel committed Nov 17, 2024
1 parent 3813ced commit 66a4b62
Show file tree
Hide file tree
Showing 35 changed files with 71 additions and 119 deletions.
5 changes: 1 addition & 4 deletions updater/software/AcrobatReader2017To2020.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,7 @@ public override AvailableSoftware searchForNewer()
/// <returns>Returns a list of process names that block the upgrade.</returns>
public override List<string> blockerProcesses(DetectedSoftware detected)
{
return new List<string>(1)
{
"AcroRd32",
};
return ["AcroRd32"];
}

/// <summary>
Expand Down
5 changes: 1 addition & 4 deletions updater/software/AcrobatReader2020.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,7 @@ public override AvailableSoftware searchForNewer()
/// <returns>Returns a list of process names that block the upgrade.</returns>
public override List<string> blockerProcesses(DetectedSoftware detected)
{
return new List<string>(1)
{
"AcroRd32",
};
return ["AcroRd32"];
}
} // class
} // namespace
5 changes: 1 addition & 4 deletions updater/software/BlenderLTS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,7 @@ public override AvailableSoftware searchForNewer()
/// <returns>Returns a list of process names that block the upgrade.</returns>
public override List<string> blockerProcesses(DetectedSoftware detected)
{
return new List<string>(1)
{
"blender"
};
return ["blender"];
}


Expand Down
6 changes: 3 additions & 3 deletions updater/software/Doxygen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ public override AvailableSoftware searchForNewer()
/// <returns>Returns a list of process names that block the upgrade.</returns>
public override List<string> blockerProcesses(DetectedSoftware detected)
{
return new List<string>(4)
{
return
[
"doxygen",
"doxyindexer",
"doxysearch.cgi",
"doxywizard"
};
];
}
}
}
6 changes: 3 additions & 3 deletions updater/software/Git.cs
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,12 @@ public override AvailableSoftware searchForNewer()
/// <returns>Returns a list of process names that block the upgrade.</returns>
public override List<string> blockerProcesses(DetectedSoftware detected)
{
return new List<string>(3)
{
return
[
"git", // Git itself
"bash", // Git Bash
"git-bash" // also Git Bash
};
];
}
} // class
} // namespace
6 changes: 3 additions & 3 deletions updater/software/Graphviz.cs
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ public override AvailableSoftware searchForNewer()
/// <returns>Returns a list of process names that block the upgrade.</returns>
public override List<string> blockerProcesses(DetectedSoftware detected)
{
return new List<string>(14)
{
return
[
"dot",
"dot2gxl",
"gml2gv",
Expand All @@ -225,7 +225,7 @@ public override List<string> blockerProcesses(DetectedSoftware detected)
"gxl2dot",
"gxl2gv",
"mm2gv"
};
];
}


Expand Down
5 changes: 1 addition & 4 deletions updater/software/HeidiSQL.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,7 @@ public override AvailableSoftware searchForNewer()
/// <returns>Returns a list of process names that block the upgrade.</returns>
public override List<string> blockerProcesses(DetectedSoftware detected)
{
return new List<string>(1)
{
"heidisql"
};
return ["heidisql"];
}


Expand Down
6 changes: 3 additions & 3 deletions updater/software/HexChat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ public override AvailableSoftware searchForNewer()
/// <returns>Returns a list of process names that block the upgrade.</returns>
public override List<string> blockerProcesses(DetectedSoftware detected)
{
return new List<string>(2)
{
return
[
"hexchat", // HexChat itself
"thememan" // theme manager
};
];
}
} // class
} // namespace
6 changes: 3 additions & 3 deletions updater/software/Inkscape.cs
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,11 @@ public override AvailableSoftware searchForNewer()
/// <returns>Returns a list of process names that block the upgrade.</returns>
public override List<string> blockerProcesses(DetectedSoftware detected)
{
return new List<string>(2)
{
return
[
"inkscape",
"inkview"
};
];
}


Expand Down
6 changes: 3 additions & 3 deletions updater/software/InnoSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ public override AvailableSoftware searchForNewer()
/// <returns>Returns a list of process names that block the upgrade.</returns>
public override List<string> blockerProcesses(DetectedSoftware detected)
{
return new List<string>(4)
{
return
[
"Compil32",
"ISCC",
"islzma32",
"islzma64"
};
];
}


Expand Down
6 changes: 3 additions & 3 deletions updater/software/IrfanView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ public override AvailableSoftware searchForNewer()
/// <returns>Returns a list of process names that block the upgrade.</returns>
public override List<string> blockerProcesses(DetectedSoftware detected)
{
return new List<string>(2)
{
return
[
"i_view64",
"i_view32",
};
];
}
}
}
6 changes: 3 additions & 3 deletions updater/software/MariaDB_Base.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,15 @@ public override AvailableSoftware searchForNewer()
/// <returns>Returns a list of process names that block the upgrade.</returns>
public override List<string> blockerProcesses(DetectedSoftware detected)
{
return new List<string>(2)
{
return
[
// Technically, having the MariaDB client command-line tool
// running is not a blocker, because the server is forced into
// shutdown during the upgrade, but that will also kill any
// possibly running queries, so better don't do it.
"mariadb",
"mysql",
};
];
}


Expand Down
5 changes: 1 addition & 4 deletions updater/software/NodeJS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,7 @@ public override AvailableSoftware searchForNewer()
/// <returns>Returns a list of process names that block the upgrade.</returns>
public override List<string> blockerProcesses(DetectedSoftware detected)
{
return new List<string>(1)
{
"node"
};
return ["node"];
}
} // class
} // namespace
5 changes: 1 addition & 4 deletions updater/software/NotepadPlusPlus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,7 @@ public override AvailableSoftware searchForNewer()
/// <returns>Returns a list of process names that block the upgrade.</returns>
public override List<string> blockerProcesses(DetectedSoftware detected)
{
return new List<string>(1)
{
"notepad++"
};
return ["notepad++"];
}

} // class
Expand Down
6 changes: 3 additions & 3 deletions updater/software/OpenJDK11.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,14 @@ public override AvailableSoftware searchForNewer()
/// <returns>Returns a list of process names that block the upgrade.</returns>
public override List<string> blockerProcesses(DetectedSoftware detected)
{
return new List<string>(5)
{
return
[
"java",
"javac",
"javadoc",
"javap",
"javaw"
};
];
}
} // class
} // namespace
6 changes: 3 additions & 3 deletions updater/software/OpenJDK17.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,14 @@ public override AvailableSoftware searchForNewer()
/// <returns>Returns a list of process names that block the upgrade.</returns>
public override List<string> blockerProcesses(DetectedSoftware detected)
{
return new List<string>(5)
{
return
[
"java",
"javac",
"javadoc",
"javap",
"javaw"
};
];
}
} // class
} // namespace
6 changes: 3 additions & 3 deletions updater/software/OpenJDK21.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,14 @@ public override AvailableSoftware searchForNewer()
/// <returns>Returns a list of process names that block the upgrade.</returns>
public override List<string> blockerProcesses(DetectedSoftware detected)
{
return new List<string>(5)
{
return
[
"java",
"javac",
"javadoc",
"javap",
"javaw"
};
];
}
} // class
} // namespace
6 changes: 3 additions & 3 deletions updater/software/OpenJDK8.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,14 +222,14 @@ public override AvailableSoftware searchForNewer()
/// <returns>Returns a list of process names that block the upgrade.</returns>
public override List<string> blockerProcesses(DetectedSoftware detected)
{
return new List<string>(5)
{
return
[
"java",
"javac",
"javadoc",
"javap",
"javaw"
};
];
}
} // class
} // namespace
6 changes: 3 additions & 3 deletions updater/software/OpenJRE11.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,12 @@ public override AvailableSoftware searchForNewer()
/// <returns>Returns a list of process names that block the upgrade.</returns>
public override List<string> blockerProcesses(DetectedSoftware detected)
{
return new List<string>(3)
{
return
[
"jaotc",
"java",
"javaw"
};
];
}
} // class
} // namespace
6 changes: 3 additions & 3 deletions updater/software/OpenJRE17.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,12 @@ public override AvailableSoftware searchForNewer()
/// <returns>Returns a list of process names that block the upgrade.</returns>
public override List<string> blockerProcesses(DetectedSoftware detected)
{
return new List<string>(3)
{
return
[
"jaotc",
"java",
"javaw"
};
];
}
} // class
} // namespace
6 changes: 3 additions & 3 deletions updater/software/OpenJRE21.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,12 @@ public override AvailableSoftware searchForNewer()
/// <returns>Returns a list of process names that block the upgrade.</returns>
public override List<string> blockerProcesses(DetectedSoftware detected)
{
return new List<string>(3)
{
return
[
"jaotc",
"java",
"javaw"
};
];
}
} // class
} // namespace
6 changes: 3 additions & 3 deletions updater/software/OpenJRE8.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,11 @@ public override AvailableSoftware searchForNewer()
/// <returns>Returns a list of process names that block the upgrade.</returns>
public override List<string> blockerProcesses(DetectedSoftware detected)
{
return new List<string>(2)
{
return
[
"java",
"javaw"
};
];
}
} // class
} // namespace
2 changes: 1 addition & 1 deletion updater/software/Pidgin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public override AvailableSoftware searchForNewer()
/// <returns>Returns a list of process names that block the upgrade.</returns>
public override List<string> blockerProcesses(DetectedSoftware detected)
{
return new List<string>(1) { "pidgin" };
return ["pidgin"];
}

} // class
Expand Down
5 changes: 1 addition & 4 deletions updater/software/Putty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,7 @@ public override AvailableSoftware searchForNewer()
/// <returns>Returns a list of process names that block the upgrade.</returns>
public override List<string> blockerProcesses(DetectedSoftware detected)
{
return new List<string>(1)
{
"putty"
};
return ["putty"];
}


Expand Down
5 changes: 1 addition & 4 deletions updater/software/Scribus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,7 @@ public override AvailableSoftware searchForNewer()
/// <returns>Returns a list of process names that block the upgrade.</returns>
public override List<string> blockerProcesses(DetectedSoftware detected)
{
return new List<string>(1)
{
"Scribus"
};
return ["Scribus"];
}


Expand Down
5 changes: 1 addition & 4 deletions updater/software/Shotcut.cs
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,7 @@ public override AvailableSoftware searchForNewer()
/// <returns>Returns a list of process names that block the upgrade.</returns>
public override List<string> blockerProcesses(DetectedSoftware detected)
{
return new List<string>(1)
{
"shotcut"
};
return ["shotcut"];
}


Expand Down
5 changes: 1 addition & 4 deletions updater/software/Stellarium.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,7 @@ public override AvailableSoftware searchForNewer()
/// <returns>Returns a list of process names that block the upgrade.</returns>
public override List<string> blockerProcesses(DetectedSoftware detected)
{
return new List<string>(1)
{
"stellarium"
};
return ["stellarium"];
}
}
}
Loading

0 comments on commit 66a4b62

Please sign in to comment.