Skip to content

Commit

Permalink
Correct error flag, fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarWatcher committed Aug 22, 2024
1 parent 5c78179 commit abfbac6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ jobs:
- name: Run build
run: |
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DLINT=ON -DLINT_WARNINGS_AS_ERRORS=ON
cmake .. -DCMAKE_BUILD_TYPE=Release -DLINT=ON -DLINT_WARNINGS_ARE_ERRORS=ON
make -j $(nproc)
4 changes: 4 additions & 0 deletions src/hazel/data/dashboard/DashboardUpdaters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ bool Updaters::updateDashboardData(DashboardData &data, long long& waitSecs) {

bool Updaters::updateLinks(DashboardData& data, long long& waitSecs) {
bool dirty = false;
if (!data.links) {
spdlog::error("Failed to update; data.links is nullptr");
return false;
}
auto& links = *data.links;
for (auto& link : links) {
if (link.appType != LinkDynamicApp::_None) {
Expand Down
2 changes: 1 addition & 1 deletion src/hazel/json/JsonImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void hazel::from_json(const nlohmann::json& i, Config& o) {

if (i.contains("adapters")) {
for (const auto& [adapterId, conf] : i.at("adapters").items()) {
auto& type = conf.at("type");
const auto& type = conf.at("type");
if (type == "discord") {
o.adapters.insert({
adapterId,
Expand Down

0 comments on commit abfbac6

Please sign in to comment.